Use machdep.guessed_bootdev to guess the boot device.

This commit is contained in:
Luigi Rizzo 2002-03-11 05:15:44 +00:00
parent fd43aa1c2c
commit 45b51b4564
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92059

View File

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