From 45b51b45646284fe85586e36094920299b7d5120 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Mon, 11 Mar 2002 05:15:44 +0000 Subject: [PATCH] Use machdep.guessed_bootdev to guess the boot device. --- release/picobsd/mfs_tree/stand/update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/picobsd/mfs_tree/stand/update b/release/picobsd/mfs_tree/stand/update index 8e1d30bb8fd6..072493a12f89 100755 --- a/release/picobsd/mfs_tree/stand/update +++ b/release/picobsd/mfs_tree/stand/update @@ -5,8 +5,8 @@ thefiles=$* [ -z "$thefiles" ] && \ thefiles="/etc/rc.conf /etc/rc.firewall /etc/master.passwd" -dev=`sysctl -n kern.bootdevname` -[ -z ${dev} ] && dev="/dev/fd0" +dev=`sysctl -n machdep.guessed_bootdev` +[ -c "${dev}" ] || dev="/dev/fd0" mount ${dev} /mnt if [ "$?" != "0" ] ; then echo ""