mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Further cleanup: remove useless entries from PATH, and be prepared
to use kern.bootdevname (if available) to identify the boot device for updating the configuration. Fallback to /dev/fd0 as before.
This commit is contained in:
parent
959168ab57
commit
62afeb55c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91876
@ -5,8 +5,9 @@ trap : 2
|
||||
trap : 3
|
||||
|
||||
HOME=/; export HOME
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin; export PATH
|
||||
dev="/dev/fd0"
|
||||
PATH=/bin; export PATH
|
||||
dev=`sysctl -n kern.bootdevname`
|
||||
[ -z ${dev} ] && dev="/dev/fd0"
|
||||
|
||||
trap "echo 'Reboot interrupted'; exit 1" 3
|
||||
echo "Loading /etc from MFS:/fd ..."
|
||||
|
Loading…
Reference in New Issue
Block a user