diff options
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.firmware | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware index a6e0082..8c4eab5 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -161,6 +161,13 @@ pfSenseupgrade) backup_chflags remove_chflags + # Do we have a pre-upgrade hook in the update file? + if [ `tar tvzf $IMG | grep /tmp/pre_upgrade_command | wc -l` -gt 0 ]; then + tar xzvf $IMG -C / ./tmp/pre_upgrade_command + chmod a+rx /tmp/pre_upgrade_command + sh /tmp/pre_upgrade_command + fi + #exec </dev/console >/dev/console 2>/dev/console echo "Firmware upgrade in progress..." | logger -p daemon.info -i -t Upgrade |