summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.firmware_update
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-05-04 22:50:55 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-05-04 22:50:55 -0400
commit030f88e83e778981979266f66effa58ebd311582 (patch)
tree133cb1af8fb4f7fd26ba76584d7ee76806a58674 /etc/rc.initial.firmware_update
parent8496e20dec6fb51c249ab9a959e8a56cd5daa222 (diff)
downloadpfsense-030f88e83e778981979266f66effa58ebd311582.zip
pfsense-030f88e83e778981979266f66effa58ebd311582.tar.gz
Set firmware lock bit when doing the upgrade
Diffstat (limited to 'etc/rc.initial.firmware_update')
-rwxr-xr-xetc/rc.initial.firmware_update2
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");
OpenPOWER on IntegriCloud