interfaces: async calls for newip* actions

This commit is contained in:
Franco Fichtner 2021-11-17 09:02:33 +01:00
parent 6d14376da3
commit e52c256b62
2 changed files with 3 additions and 6 deletions

View File

@ -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";

View File

@ -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