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 ...@@ -15,11 +15,6 @@ if [ -n "${*}" ]; then
exit ${?} exit ${?}
fi fi
OPT_RESTORE="13) Restore configuration"
if [ ! -f /usr/local/etc/rc.initial.restore ]; then
OPT_RESTORE=
fi
# endless loop # endless loop
while : ; do while : ; do
...@@ -37,7 +32,7 @@ echo " 2) Set interface IP address 9) pfTop" ...@@ -37,7 +32,7 @@ echo " 2) Set interface IP address 9) pfTop"
echo " 3) Reset the root password 10) Firewall log" echo " 3) Reset the root password 10) Firewall log"
echo " 4) Reset to factory defaults 11) Reload all services" echo " 4) Reset to factory defaults 11) Reload all services"
echo " 5) Power off system 12) Upgrade from console" echo " 5) Power off system 12) Upgrade from console"
echo " 6) Reboot system ${OPT_RESTORE}" echo " 6) Reboot system 13) Restore a backup"
echo echo
read -p "Enter an option: " OPCODE read -p "Enter an option: " OPCODE
echo echo
...@@ -87,9 +82,7 @@ case ${OPCODE} in ...@@ -87,9 +82,7 @@ case ${OPCODE} in
/usr/local/etc/rc.initial.firmware /usr/local/etc/rc.initial.firmware
;; ;;
13) 13)
if [ -n "${OPT_RESTORE}" ]; then
/usr/local/etc/rc.initial.restore /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