summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-10-03 22:01:23 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-10-03 22:01:23 +0000
commitd0b3b0b1b50f9f9efc55a7790990ea63483cc80e (patch)
treeaceb6331b638a07094ebe373d374abfa9ada2d20 /etc/rc.firmware
parent2b61eeb1975e3104e148666c1d2b7e6ecc0a6f54 (diff)
downloadpfsense-d0b3b0b1b50f9f9efc55a7790990ea63483cc80e.zip
pfsense-d0b3b0b1b50f9f9efc55a7790990ea63483cc80e.tar.gz
Run /tmp/post_upgrade_command after update if it exists
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware14
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index fd00dff..dffc224 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -131,6 +131,13 @@ upgrade)
sleep 5
echo "Done."
+
+ # If /tmp/post_upgrade_command exists after update
+ # then execute the command.
+ if [ -f /tmp/post_upgrade_command ]; then
+ sh /tmp/post_upgrade_command
+ fi
+
# If the archive has unpacked a file called
# /tmp/no_upgrade_reboot_required then do
# not reboot after upgrade.
@@ -212,6 +219,13 @@ pfSenseupgrade)
fi
/bin/sync
echo "Done." | logger -p daemon.info -i -t Upgrade
+
+ # If /tmp/post_upgrade_command exists after update
+ # then execute the command.
+ if [ -f /tmp/post_upgrade_command ]; then
+ sh /tmp/post_upgrade_command
+ fi
+
# If the archive has unpacked a file called
# /tmp/no_upgrade_reboot_required then do
# not reboot after upgrade.
OpenPOWER on IntegriCloud