xref: /minix/etc/newfstab.sh (revision cedeabb3)
1#!/bin/sh
2
3set -e
4
5if [ $# -ne 1 ]
6then	echo "Usage: $0 <minix-style-fstab> >newfstab"
7	exit 1
8fi
9
10fstab="$1"
11. $fstab
12
13if [ -z "$usr" -o -z "$root" ]
14then	echo "\$root and \$usr not set in $fstab"
15	exit 1
16fi
17
18echo "$root	/	mfs	rw	0	2"
19echo "$usr	/usr	mfs	rw	0	1"
20if [ -n "$home" ]
21then	echo "$home	/home	mfs	rw	0	1"
22fi
23