summaryrefslogtreecommitdiffstats
path: root/release/picobsd
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2002-03-08 12:43:57 +0000
committerluigi <luigi@FreeBSD.org>2002-03-08 12:43:57 +0000
commit9efe38f96b2f90dbfc46c0e14644ebb2e6819616 (patch)
treef3c2282d52f0b37448666fd407aecb339c7a5a13 /release/picobsd
parent30e07f37ab36e5d673d24ea6822332947195d2fc (diff)
downloadFreeBSD-src-9efe38f96b2f90dbfc46c0e14644ebb2e6819616.zip
FreeBSD-src-9efe38f96b2f90dbfc46c0e14644ebb2e6819616.tar.gz
Further cleanup: remove useless entries from PATH, and be prepared
to use kern.bootdevname (if available) to identify the boot device for updating the configuration. Fallback to /dev/fd0 as before.
Diffstat (limited to 'release/picobsd')
-rw-r--r--release/picobsd/mfs_tree/etc/rc5
1 files changed, 3 insertions, 2 deletions
diff --git a/release/picobsd/mfs_tree/etc/rc b/release/picobsd/mfs_tree/etc/rc
index e59af75..cacdaa8 100644
--- a/release/picobsd/mfs_tree/etc/rc
+++ b/release/picobsd/mfs_tree/etc/rc
@@ -5,8 +5,9 @@ trap : 2
trap : 3
HOME=/; export HOME
-PATH=/sbin:/bin:/usr/sbin:/usr/bin; export PATH
-dev="/dev/fd0"
+PATH=/bin; export PATH
+dev=`sysctl -n kern.bootdevname`
+[ -z ${dev} ] && dev="/dev/fd0"
trap "echo 'Reboot interrupted'; exit 1" 3
echo "Loading /etc from MFS:/fd ..."
OpenPOWER on IntegriCloud