Lets put a logging to see what is bing passed to the rtsold script on calling. Helps with Ticket #3361

This commit is contained in:
Ermal 2014-11-10 15:38:37 +01:00
parent 6f55af1c25
commit c87d89ae9f
1 changed files with 1 additions and 0 deletions

View File

@ -3689,6 +3689,7 @@ function interface_dhcpv6_configure($interface = "wan", $wancfg) {
$rtsoldscript .= "# This shell script launches dhcp6c and configured gateways for this interface.\n";
$rtsoldscript .= "echo $2 > {$g['tmp_path']}/{$wanif}_routerv6\n";
$rtsoldscript .= "echo $2 > {$g['tmp_path']}/{$wanif}_defaultgwv6\n";
$rtsoldscript .= "/usr/bin/logger -t rtsold \"Recieved RA specifying route \$2 for interface {$interface}({$wanif})\"\n";
$rtsoldscript .= "if [ -f {$g['varrun_path']}/dhcp6c_{$wanif}.pid ]; then\n";
$rtsoldscript .= "\t/bin/pkill -F {$g['varrun_path']}/dhcp6c_{$wanif}.pid\n";
$rtsoldscript .= "\t/bin/sleep 1\n";