summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-06-06 17:45:37 +0000
committerphk <phk@FreeBSD.org>1994-06-06 17:45:37 +0000
commitebf9e71a9386784ea0b8e7dd5b41821838b6cfd5 (patch)
tree023a935d6147a707d7b3846602627d4592c7a2d9 /etc
parenteae4d9b379a7f413fefdba3dc0a33ad0c65a5663 (diff)
downloadFreeBSD-src-ebf9e71a9386784ea0b8e7dd5b41821838b6cfd5.zip
FreeBSD-src-ebf9e71a9386784ea0b8e7dd5b41821838b6cfd5.tar.gz
check for diskless boot, and remount / RW in that case.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index ea0c4b3..de5fe06 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.25 1994/06/04 00:43:59 ache Exp $
+# $Id: rc,v 1.26 1994/06/05 16:03:57 ats Exp $
# 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
+# 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)
OpenPOWER on IntegriCloud