rc: show argument for defer, order was wrong

PR: https://forum.opnsense.org/index.php?topic=6891.0
This commit is contained in:
Franco Fichtner 2018-01-16 17:58:49 +01:00
parent 73ad71d0f6
commit cd5e23360f
2 changed files with 4 additions and 6 deletions

View File

@ -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)) {

View File

@ -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)) {