diff options
author | luigi <luigi@FreeBSD.org> | 2002-03-11 05:15:44 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2002-03-11 05:15:44 +0000 |
commit | 5f22dca4bbb55bd09c14a94df1c2d8af6d42dab0 (patch) | |
tree | 1d5d3e57e5618be96739676da44fce3548c019bc /release/picobsd/mfs_tree/stand | |
parent | c4c8eefa48a79da73b0ca740948210fd06a6a7af (diff) | |
download | FreeBSD-src-5f22dca4bbb55bd09c14a94df1c2d8af6d42dab0.zip FreeBSD-src-5f22dca4bbb55bd09c14a94df1c2d8af6d42dab0.tar.gz |
Use machdep.guessed_bootdev to guess the boot device.
Diffstat (limited to 'release/picobsd/mfs_tree/stand')
-rwxr-xr-x | release/picobsd/mfs_tree/stand/update | 4 |
1 files changed, 2 insertions, 2 deletions
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 "" |