Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
auto assign GUA when dhcp6c script is called
  • Loading branch information
luckman212 committed Sep 29, 2022
1 parent 2fe0e0f commit a20cd10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/etc/inc/interfaces.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5041,6 +5041,7 @@ function interface_dhcpv6_configure($ifconf = "wan", $ifcfg, $destroy = false) {
$dhcp6cscriptwithoutra .= "/usr/bin/logger -t dhcp6c \"dhcp6c renew, no change - bypassing update on {$wanif}\"\n";
}
$dhcp6cscriptwithoutra .= "esac\n";
$dhcp6cscriptwithoutra .= "/root/assign_gua_from_iapd.sh {$wanif}\n";
if (!@file_put_contents(
"{$g['varetc_path']}/dhcp6c_{$interface}_dhcp6withoutra_script.sh",
$dhcp6cscriptwithoutra)) {
Expand Down Expand Up @@ -5092,6 +5093,7 @@ function interface_dhcpv6_configure($ifconf = "wan", $ifcfg, $destroy = false) {
$dhcp6cscript .= "/bin/sleep 1\n";
$dhcp6cscript .= "/usr/local/sbin/fcgicli -f /etc/rc.newwanipv6 -d \"interface={$wanif}&dmnames=\${dmnames}&dmips=\${dmips}\"\n";
}
$dhcp6cscript .= "/root/assign_gua_from_iapd.sh {$wanif}\n";

/* Add wide-dhcp6c shell script here. Because we can not pass a argument to it. */
if (!@file_put_contents("{$g['varetc_path']}/dhcp6c_{$interface}_script.sh", $dhcp6cscript)) {
Expand Down

0 comments on commit a20cd10

Please sign in to comment.