diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-05-04 22:50:55 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-05-04 22:50:55 -0400 |
commit | 030f88e83e778981979266f66effa58ebd311582 (patch) | |
tree | 133cb1af8fb4f7fd26ba76584d7ee76806a58674 /etc/rc.initial.firmware_update | |
parent | 8496e20dec6fb51c249ab9a959e8a56cd5daa222 (diff) | |
download | pfsense-030f88e83e778981979266f66effa58ebd311582.zip pfsense-030f88e83e778981979266f66effa58ebd311582.tar.gz |
Set firmware lock bit when doing the upgrade
Diffstat (limited to 'etc/rc.initial.firmware_update')
-rwxr-xr-x | etc/rc.initial.firmware_update | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/rc.initial.firmware_update b/etc/rc.initial.firmware_update index affce11..97482d9 100755 --- a/etc/rc.initial.firmware_update +++ b/etc/rc.initial.firmware_update @@ -156,6 +156,7 @@ function check_for_kernel_file() { function do_upgrade($path, $type) { global $g; + touch($g['varrun_path'] . "/firmware.lock"); check_for_kernel_file(); echo "\nOne moment please...\nInvoking firmware upgrade..."; if($type == "bdiff") @@ -168,6 +169,7 @@ function do_upgrade($path, $type) { echo "."; } echo "Done. Rebooting...\n\n"; + unlink($g['varrun_path'] . "/firmware.lock"); } exec("rm -f /root/*.md5"); |