From 030f88e83e778981979266f66effa58ebd311582 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 4 May 2009 22:50:55 -0400 Subject: Set firmware lock bit when doing the upgrade --- etc/rc.initial.firmware_update | 2 ++ 1 file changed, 2 insertions(+) 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"); -- cgit v1.1