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 ..."