1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

The probable boot device is "machdep.guessed_bootdev".

This commit is contained in:
Luigi Rizzo 2002-03-10 20:37:04 +00:00
parent a914a17e1d
commit 5a9365040d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92022

View File

@ -6,8 +6,8 @@ trap : 3
HOME=/; export HOME
PATH=/bin; export PATH
dev=`sysctl -n kern.bootdevname`
[ -z ${dev} ] && dev="/dev/fd0"
dev=`sysctl -n machdep.guessed_bootdev`
[ -c "${dev}" ] || dev="/dev/fd0"
trap "echo 'Reboot interrupted'; exit 1" 3
echo "Loading /etc from MFS:/fd ..."