summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-07-30 19:34:48 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-07-30 19:34:48 -0400
commit476aa14b9f662f5c37bc70dfb32ebf5a5bc3b349 (patch)
tree456e1ddb0cb468c98febd9b323e3e64dbe120e79 /etc/rc.firmware
parentba90574464f7ab11b72d54f2085c92280c2c3258 (diff)
downloadpfsense-476aa14b9f662f5c37bc70dfb32ebf5a5bc3b349.zip
pfsense-476aa14b9f662f5c37bc70dfb32ebf5a5bc3b349.tar.gz
Use rc.firmware_notify to send a message when upgrade starts and completed
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware8
1 files changed, 6 insertions, 2 deletions
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
OpenPOWER on IntegriCloud