1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 19:11:51 +00:00
openmptcprouter-feeds/openmptcprouter/files/etc/uci-defaults/2000-omr-dhcp
2020-09-11 14:14:52 +02:00

13 lines
257 B
Bash
Executable file

#!/bin/sh
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
fi
exit 0