mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Doesn't disable RA after update
This commit is contained in:
parent
4b2e9ecae2
commit
18b858776a
1 changed files with 9 additions and 7 deletions
|
@ -1,11 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
uci -q batch <<-EOF >/dev/null
|
if [ "$(uci -q get openmptcprouter.settings.disable_ipv6)" != "0" ]; then
|
||||||
|
uci -q batch <<-EOF >/dev/null
|
||||||
set dhcp.lan.ra_default=0
|
set dhcp.lan.ra_default=0
|
||||||
set dhcp.lan.dhcpv6=disabled
|
set dhcp.lan.dhcpv6=disabled
|
||||||
set dhcp.lan.force=1
|
set dhcp.lan.force=1
|
||||||
commit dhcp
|
commit dhcp
|
||||||
EOF
|
EOF
|
||||||
rm -f /tmp/luci-indexcache
|
rm -f /tmp/luci-indexcache
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue