Commit 5be0188b authored by Franco Fichtner's avatar Franco Fichtner

rc: reduce diff against master

(cherry picked from commit d4b0b2af)
parent e308d62b
......@@ -15,11 +15,6 @@ if [ -n "${*}" ]; then
exit ${?}
fi
OPT_RESTORE="13) Restore configuration"
if [ ! -f /usr/local/etc/rc.initial.restore ]; then
OPT_RESTORE=
fi
# endless loop
while : ; do
......@@ -37,7 +32,7 @@ echo " 2) Set interface IP address 9) pfTop"
echo " 3) Reset the root password 10) Firewall log"
echo " 4) Reset to factory defaults 11) Reload all services"
echo " 5) Power off system 12) Upgrade from console"
echo " 6) Reboot system ${OPT_RESTORE}"
echo " 6) Reboot system 13) Restore a backup"
echo
read -p "Enter an option: " OPCODE
echo
......@@ -87,9 +82,7 @@ case ${OPCODE} in
/usr/local/etc/rc.initial.firmware
;;
13)
if [ -n "${OPT_RESTORE}" ]; then
/usr/local/etc/rc.initial.restore
fi
;;
*)
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment