Revision 08efe4e6
Added by Ermal LUÇI almost 12 years ago
etc/rc.newwanipv6 | ||
---|---|---|
55 | 55 |
} |
56 | 56 |
|
57 | 57 |
/* Interface IP address has changed */ |
58 |
$argument = str_replace("\n", "", $argv[1]);
|
|
58 |
$argument = trim($argv[1], " \n\t");
|
|
59 | 59 |
|
60 | 60 |
log_error("rc.newwanipv6: Informational is starting {$argument}."); |
61 | 61 |
|
62 |
/* wait for the dhcp6c process to configure the LAN interface */ |
|
63 |
sleep(5); |
|
64 |
|
|
65 | 62 |
if(empty($argument)) { |
66 | 63 |
$interface = "wan"; |
67 | 64 |
$interface_real = get_real_interface($interface); |
Also available in: Unified diff
Use trim rather than str_replace. Also no need to sleep anymore since dhcp will configure first the interface