diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-30 21:54:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-30 21:54:07 +0000 |
commit | bfcb39c4cbb45e0952be9f262ff50c41c625e0ee (patch) | |
tree | e7233203fb26621972cae9d5be8d32028db5c5ae /etc/rc.initial | |
parent | 0b1b59285ecee7a6912d7dffca9858b327f978d2 (diff) | |
download | pfsense-bfcb39c4cbb45e0952be9f262ff50c41c625e0ee.zip pfsense-bfcb39c4cbb45e0952be9f262ff50c41c625e0ee.tar.gz |
Add Invoke Auto Upgrade option to console menu
Diffstat (limited to 'etc/rc.initial')
-rwxr-xr-x | etc/rc.initial | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/etc/rc.initial b/etc/rc.initial index d809fd8..57e6b05 100755 --- a/etc/rc.initial +++ b/etc/rc.initial @@ -38,16 +38,17 @@ while : ; do # display a cheap menu echo "pfSense console setup" echo "**********************" -echo "0) Logout if accessing via SSH" -echo "1) Interfaces: assign network ports" -echo "2) Set up LAN IP address" -echo "3) Reset webGUI password" -echo "4) Reset to factory defaults" -echo "5) Reboot system" -echo "6) Halt system" -echo "7) Ping host" -echo "8) Shell" -echo "9) PFtop" +echo " 0) Logout if accessing via SSH" +echo " 1) Interfaces: assign network ports" +echo " 2) Set up LAN IP address" +echo " 3) Reset webGUI password" +echo " 4) Reset to factory defaults" +echo " 5) Reboot system" +echo " 6) Halt system" +echo " 7) Ping host" +echo " 8) Shell" +echo " 9) PFtop" +echo "10) Invoke Auto Upgrade" echo read -p "Enter a number: " opmode @@ -87,6 +88,13 @@ case ${opmode} in /usr/local/sbin/pftop ;; 10) + echo "Downloading $FMFILENAME from $FMBASEURL ..." | logger -p daemon.info -i -t AutoUpgrade + /usr/bin/fetch -o /tmp/latest.tgz $FETCHFILENAME | logger -p daemon.info -i -t AutoUpgrade + echo "Downloading $FMFILENAME.md5 from $FMBASEURL ..." | logger -p daemon.info -i -t AutoUpgrade + /usr/bin/fetch -o /tmp/latest.tgz.md5 $FETCHFILENAME.md5 | logger -p daemon.info -i -t AutoUpgrade + /etc/rc.firmware_auto + ;; +11) if grep "$WORD" "$CONFIG" then links "https://localhost" |