Skip to content

Commit cd5e233

Browse files
committed
rc: show argument for defer, order was wrong
PR: https://forum.opnsense.org/index.php?topic=6891.0
1 parent 73ad71d commit cd5e233

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/etc/rc.newwanip

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@ require_once("util.inc");
3838
require_once("system.inc");
3939
require_once("interfaces.inc");
4040

41-
// Do not process while booting
41+
$argument = isset($argv[1]) ? trim($argv[1]) : '';
42+
4243
if (file_exists('/var/run/booting')) {
4344
log_error("IP renewal ignored during boot on '{$argument}'");
4445
return;
4546
}
4647

47-
$argument = isset($argv[1]) ? trim($argv[1]) : '';
48-
4948
log_error("IP renewal is starting on '{$argument}'");
5049

5150
if (empty($argument)) {

src/etc/rc.newwanipv6

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@ require_once("util.inc");
3838
require_once("system.inc");
3939
require_once("interfaces.inc");
4040

41-
// Do not process while booting
41+
$argument = isset($argv[1]) ? trim($argv[1]) : '';
42+
4243
if (file_exists('/var/run/booting')) {
4344
log_error("IP renewal ignored during boot on '{$argument}'");
4445
return;
4546
}
4647

47-
$argument = isset($argv[1]) ? trim($argv[1]) : '';
48-
4948
log_error("IP renewal is starting on '{$argument}'");
5049

5150
if (empty($argument)) {

0 commit comments

Comments
 (0)