From 476aa14b9f662f5c37bc70dfb32ebf5a5bc3b349 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 30 Jul 2010 19:34:48 -0400 Subject: Use rc.firmware_notify to send a message when upgrade starts and completed --- etc/rc.firmware | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'etc/rc.firmware') diff --git a/etc/rc.firmware b/etc/rc.firmware index 4275a38..a7cbfaf 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -156,7 +156,8 @@ pfSenseNanoBSDupgrade) echo "NanoBSD Firmware upgrade in progress..." >> /conf/upgrade_log.txt 2>&1 echo "NanoBSD Firmware upgrade in progress..." | wall - + /etc/rc.firmware_notify -e -g -m "NanoBSD Firmware upgrade in progress..." + # backup config /bin/mkdir -p /tmp/configbak cp -Rp /conf/* /tmp/configbak 2>/dev/null @@ -360,6 +361,7 @@ pfSenseNanoBSDupgrade) echo "NanoBSD Firmware upgrade is complete. Rebooting in 10 seconds." >> /conf/upgrade_log.txt 2>&1 echo "NanoBSD Firmware upgrade is complete. Rebooting in 10 seconds." | wall + /etc/rc.firmware_notify -e -g -m "NanoBSD Firmware upgrade is complete. Rebooting in 10 seconds." sleep 10 @@ -405,7 +407,8 @@ pfSenseupgrade) echo "Firmware upgrade in progress..." >> /conf/upgrade_log.txt 2>&1 echo "Firmware upgrade in progress..." | wall - + /etc/rc.firmware_notify -e -g -m "Firmware upgrade in progress..." + # backup config /bin/mkdir -p /tmp/configbak cp -Rp /conf/* /tmp/configbak 2>/dev/null @@ -471,6 +474,7 @@ pfSenseupgrade) echo "Firmware upgrade is complete. Rebooting in 10 seconds." >> /conf/upgrade_log.txt 2>&1 echo "Firmware upgrade is complete. Rebooting in 10 seconds." | wall + /etc/rc.firmware_notify -e -g -m "Firmware upgrade is complete. Rebooting in 10 seconds." # Sleep and allow disks to catch up sleep 10 -- cgit v1.1