1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2020-09-11 14:14:52 +02:00
parent 4b2e9ecae2
commit 18b858776a

View file

@ -1,11 +1,13 @@
#!/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.dhcpv6=disabled
set dhcp.lan.force=1
commit dhcp
EOF
rm -f /tmp/luci-indexcache
EOF
rm -f /tmp/luci-indexcache
fi
exit 0