repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
csu: restore crt1.o symlink
[minix.git]
/
etc
/
newfstab.sh
blob
c925fdf4e397bb04531e04a6e456eec388a007da
1
#!/bin/sh
2
3
set -e
4
5
if
[
$#
-ne
1
]
6
then
echo
"Usage:
$0
<minix-style-fstab> >newfstab"
7
exit
1
8
fi
9
10
fstab
=
"
$1
"
11
.
$fstab
12
13
if
[
-z
"
$usr
"
-o -z
"
$root
"
]
14
then
echo
"\
$root
and \
$usr
not set in
$fstab
"
15
exit
1
16
fi
17
18
echo
"
$root
/ mfs rw 0 2"
19
echo
"
$usr
/usr mfs rw 0 1"
20
if
[
-n
"
$home
"
]
21
then
echo
"
$home
/home mfs rw 0 1"
22
fi