mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use trim rather than str_replace. Also no need to sleep anymore since dhcp will configure first the interface
This commit is contained in:
parent
6756d9eed6
commit
08efe4e6f3
@ -55,13 +55,10 @@ function restart_packages() {
|
||||
}
|
||||
|
||||
/* Interface IP address has changed */
|
||||
$argument = str_replace("\n", "", $argv[1]);
|
||||
$argument = trim($argv[1], " \n\t");
|
||||
|
||||
log_error("rc.newwanipv6: Informational is starting {$argument}.");
|
||||
|
||||
/* wait for the dhcp6c process to configure the LAN interface */
|
||||
sleep(5);
|
||||
|
||||
if(empty($argument)) {
|
||||
$interface = "wan";
|
||||
$interface_real = get_real_interface($interface);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user