From 5f22dca4bbb55bd09c14a94df1c2d8af6d42dab0 Mon Sep 17 00:00:00 2001 From: luigi Date: Mon, 11 Mar 2002 05:15:44 +0000 Subject: Use machdep.guessed_bootdev to guess the boot device. --- release/picobsd/mfs_tree/stand/update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'release/picobsd') diff --git a/release/picobsd/mfs_tree/stand/update b/release/picobsd/mfs_tree/stand/update index 8e1d30b..072493a 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 "" -- cgit v1.1