1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00
openmptcprouter-feeds/openmptcprouter/files/etc/uci-defaults/2000-omr-dhcp
Ycarus (Yannick Chabanois) 4a4c3d671b Fix default IPv6 config
2020-10-23 09:56:02 +02:00

13 lines
255 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=1
set dhcp.lan.dhcpv6=server
set dhcp.lan.force=1
commit dhcp
EOF
rm -f /tmp/luci-indexcache
fi
exit 0