projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f40d947
)
check for diskless boot, and remount / RW in that case.
author
Poul-Henning Kamp
<phk@FreeBSD.org>
Mon, 6 Jun 1994 17:45:37 +0000
(17:45 +0000)
committer
Poul-Henning Kamp
<phk@FreeBSD.org>
Mon, 6 Jun 1994 17:45:37 +0000
(17:45 +0000)
etc/rc
patch
|
blob
|
blame
|
history
diff --git
a/etc/rc
b/etc/rc
index
ea0c4b3
..
de5fe06
100644
(file)
--- a/
etc/rc
+++ b/
etc/rc
@@
-1,5
+1,5
@@
#!/bin/sh
#!/bin/sh
-# $Id: rc,v 1.2
5 1994/06/04 00:43:59 ache
Exp $
+# $Id: rc,v 1.2
6 1994/06/05 16:03:57 ats
Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@
-59,6
+59,12
@@
trap "echo 'Reboot interrupted'; exit 1" 3
swapon -a
swapon -a
+# Check for diskless boot, and remount the root RW.
+a=`mount`
+if [ 0 != `expr "$a" : '^[^/]*:/.* on /'` ] ; then
+ mount -u -o rw /
+fi
+
umount -a >/dev/null 2>&1
mount -a -t nonfs
rm -f /fastboot # XXX (root now writeable)
umount -a >/dev/null 2>&1
mount -a -t nonfs
rm -f /fastboot # XXX (root now writeable)