Use machdep.guessed_bootdev to guess the boot device.
This commit is contained in:
parent
fd43aa1c2c
commit
45b51b4564
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92059
@ -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 ""
|
||||
|
Loading…
Reference in New Issue
Block a user