summaryrefslogtreecommitdiff
path: root/etc/newfstab.sh
blob: c925fdf4e397bb04531e04a6e456eec388a007da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

if [ $# -ne 1 ]
then	echo "Usage: $0 <minix-style-fstab> >newfstab"
	exit 1
fi

fstab="$1"
. $fstab

if [ -z "$usr" -o -z "$root" ]
then	echo "\$root and \$usr not set in $fstab"
	exit 1
fi

echo "$root	/	mfs	rw	0	2"
echo "$usr	/usr	mfs	rw	0	1"
if [ -n "$home" ]
then	echo "$home	/home	mfs	rw	0	1"
fi