console: switch halt and reboot; closes #338

This commit is contained in:
Franco Fichtner 2015-08-22 19:39:03 +02:00
parent 4504c74439
commit 7aabc9dcef

View File

@ -40,8 +40,8 @@ echo " 1) Assign Interfaces 8) Shell"
echo " 2) Set interface(s) IP address 9) pfTop"
echo " 3) Reset the root password 10) Filter Logs"
echo " 4) Reset to factory defaults 11) Restart web interface"
echo " 5) Reboot system 12) Upgrade from console"
echo " 6) Halt system 13) Restore a configuration"
echo " 5) Halt system 12) Upgrade from console"
echo " 6) Reboot system 13) Restore a configuration"
if [ -n "${option99}" ]; then
# flat for alignment...
echo " ${option99}"
@ -69,10 +69,10 @@ case ${OPCODE} in
/usr/local/etc/rc.initial.defaults
;;
5)
/usr/local/etc/rc.initial.reboot
/usr/local/etc/rc.initial.halt
;;
6)
/usr/local/etc/rc.initial.halt
/usr/local/etc/rc.initial.reboot
;;
7)
/usr/local/etc/rc.initial.ping