Skip to content

Commit

Permalink
rc: show argument for defer, order was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jan 16, 2018
1 parent 73ad71d commit cd5e233
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/etc/rc.newwanip
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
5 changes: 2 additions & 3 deletions src/etc/rc.newwanipv6
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit cd5e233

Please sign in to comment.