mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
interfaces: async calls for newip* actions
This commit is contained in:
parent
6d14376da3
commit
e52c256b62
@ -2993,14 +2993,12 @@ function interface_dhcpv6_prepare($interface = 'wan', $wancfg, $linkdownevent =
|
||||
$dhcp6cscript .= "\t\techo \${PDINFO} > /tmp/{$wanif}_pdinfo\n";
|
||||
$dhcp6cscript .= "\tfi\n";
|
||||
$dhcp6cscript .= "\t/usr/bin/logger -t dhcp6c \"dhcp6c \$REASON on {$wanif} - running newipv6\"\n";
|
||||
$dhcp6cscript .= "\t# XXX async?\n";
|
||||
$dhcp6cscript .= "\t/usr/local/sbin/configctl interface newipv6 {$wanif}\n";
|
||||
$dhcp6cscript .= "\t/usr/local/sbin/configctl -d interface newipv6 {$wanif}\n";
|
||||
$dhcp6cscript .= "\t;;\n";
|
||||
$dhcp6cscript .= "EXIT|RELEASE)\n";
|
||||
$dhcp6cscript .= "\t/usr/bin/logger -t dhcp6c \"dhcp6c \$REASON on {$wanif} - running newipv6\"\n";
|
||||
$dhcp6cscript .= "\trm -f /tmp/{$wanif}_pdinfo\n";
|
||||
$dhcp6cscript .= "\t# XXX async?\n";
|
||||
$dhcp6cscript .= "\t/usr/local/sbin/configctl interface newipv6 {$wanif}\n";
|
||||
$dhcp6cscript .= "\t/usr/local/sbin/configctl -d interface newipv6 {$wanif}\n";
|
||||
$dhcp6cscript .= "\t;;\n";
|
||||
$dhcp6cscript .= "*)\n";
|
||||
$dhcp6cscript .= "\t;;\n";
|
||||
|
||||
@ -18,7 +18,6 @@ elif [ -n "${ifconfig_ipv6_local}" ]; then
|
||||
/bin/echo ${ifconfig_ipv6_local} > /tmp/${1}_routerv6
|
||||
fi
|
||||
|
||||
# XXX should this be async like PPP?
|
||||
/usr/local/sbin/configctl interface newip ${1}
|
||||
/usr/local/sbin/configctl -d interface newip ${1}
|
||||
|
||||
exit 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user