mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
rc: show argument for defer, order was wrong
PR: https://forum.opnsense.org/index.php?topic=6891.0
This commit is contained in:
parent
73ad71d0f6
commit
cd5e23360f
@ -38,14 +38,13 @@ require_once("util.inc");
|
||||
require_once("system.inc");
|
||||
require_once("interfaces.inc");
|
||||
|
||||
// Do not process while booting
|
||||
$argument = isset($argv[1]) ? trim($argv[1]) : '';
|
||||
|
||||
if (file_exists('/var/run/booting')) {
|
||||
log_error("IP renewal ignored during boot on '{$argument}'");
|
||||
return;
|
||||
}
|
||||
|
||||
$argument = isset($argv[1]) ? trim($argv[1]) : '';
|
||||
|
||||
log_error("IP renewal is starting on '{$argument}'");
|
||||
|
||||
if (empty($argument)) {
|
||||
|
||||
@ -38,14 +38,13 @@ require_once("util.inc");
|
||||
require_once("system.inc");
|
||||
require_once("interfaces.inc");
|
||||
|
||||
// Do not process while booting
|
||||
$argument = isset($argv[1]) ? trim($argv[1]) : '';
|
||||
|
||||
if (file_exists('/var/run/booting')) {
|
||||
log_error("IP renewal ignored during boot on '{$argument}'");
|
||||
return;
|
||||
}
|
||||
|
||||
$argument = isset($argv[1]) ? trim($argv[1]) : '';
|
||||
|
||||
log_error("IP renewal is starting on '{$argument}'");
|
||||
|
||||
if (empty($argument)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user