From 62afeb55c90a9d9cfb82b6a42a9152efc118a966 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Fri, 8 Mar 2002 12:43:57 +0000 Subject: [PATCH] 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. --- release/picobsd/mfs_tree/etc/rc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/release/picobsd/mfs_tree/etc/rc b/release/picobsd/mfs_tree/etc/rc index e59af75c3c39..cacdaa8db1e9 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 ..."