mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
ref #6596 - stop touching /var/run/booting
Ref: https://github.com/opnsense/core/issues/6596#issuecomment-1575160947
This commit is contained in:
parent
81fa5fd332
commit
97343e3aae
@ -49,7 +49,11 @@ final class product
|
||||
|
||||
/* boot detection */
|
||||
$bootflag = '/var/run/booting';
|
||||
@touch($bootflag);
|
||||
|
||||
if (!file_exists($bootflag)) {
|
||||
@touch($bootflag);
|
||||
}
|
||||
|
||||
$fp = fopen($bootflag, 'r');
|
||||
self::$data['product_booting'] = $fp && !flock($fp, LOCK_SH | LOCK_NB);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user