diff options
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/system_firmware_auto.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_firmware_auto.php b/usr/local/www/system_firmware_auto.php index c203672..cb267f1 100755 --- a/usr/local/www/system_firmware_auto.php +++ b/usr/local/www/system_firmware_auto.php @@ -223,8 +223,8 @@ if($use_old_checkversion == false) { $firmwareurl=$g['firmwarebaseurl']; $firmwarename=$g['firmwarefilename']; } - exec("ps -ax | grep rc.firmware_auto | grep -v grep", $upgrade_lock); - if($upgrade_lock[0] != "") { + $upgrade_lock = file("/tmp/autoupdate.lock"); + if(trim($upgrade_lock[0]) == "1") { $update_status = "An upgrade is already in progress."; update_output_window($update_status); exit; |