diff options
author | Ermal <eri@pfsense.org> | 2013-06-17 07:59:29 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-06-17 08:06:08 +0000 |
commit | 08efe4e6f377d9b3837ac09ccb774f39ff16273c (patch) | |
tree | 4ab141df762acfcd8d4353fbecadbaf19627163f /etc | |
parent | 6756d9eed66291957aa0bd679e6eb091b07afef4 (diff) | |
download | pfsense-08efe4e6f377d9b3837ac09ccb774f39ff16273c.zip pfsense-08efe4e6f377d9b3837ac09ccb774f39ff16273c.tar.gz |
Use trim rather than str_replace. Also no need to sleep anymore since dhcp will configure first the interface
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.newwanipv6 | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/etc/rc.newwanipv6 b/etc/rc.newwanipv6 index 287ea6a..4f883d9 100755 --- a/etc/rc.newwanipv6 +++ b/etc/rc.newwanipv6 @@ -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); |