File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 369369}
370370
371371if [ " $1 " = " auto" ]; then
372+ if [ " $( pgrep -f " fleth auto" | wc -l) " -ge 3 ]; then
373+ exit 0
374+ fi
372375 logger -t fleth " is running $h_ENABLED "
373376 if [ " $h_ENABLED " == " 1" ]; then
374377 get_uplink_interface_ipv6 > /dev/null
@@ -429,6 +432,7 @@ elif [ "$1" = "setup_ipv6_slaac" ]; then
429432 # Configure uplink interface settings
430433 uci batch << EOF
431434set network.${h_UPLINK_INTERFACE} .reqaddress='try'
435+ set network.${h_UPLINK_INTERFACE} .extendprefix='1'
432436del network.${h_UPLINK_INTERFACE} .reqprefix
433437del network.${h_UPLINK_INTERFACE} .ip6assign
434438set dhcp.${h_UPLINK_INTERFACE} =dhcp
@@ -474,6 +478,7 @@ elif [ "$1" = "setup_ipv6_pd" ]; then
474478set network.${h_UPLINK_INTERFACE} .reqprefix='auto'
475479set network.${h_UPLINK_INTERFACE} .reqaddress='try'
476480set network.${h_UPLINK_INTERFACE} .ip6assign='64'
481+ del network.${h_UPLINK_INTERFACE} .extendprefix
477482set dhcp.${h_UPLINK_INTERFACE} =dhcp
478483set dhcp.${h_UPLINK_INTERFACE} .interface='${h_UPLINK_INTERFACE} '
479484set dhcp.${h_UPLINK_INTERFACE} .master='1'
You can’t perform that action at this time.
0 commit comments