1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
openmptcprouter-feeds/openmptcprouter/files/etc/uci-defaults/2000-omr-dhcp
Ycarus (Yannick Chabanois) 26af9f5abc Disable DHCP log
2025-02-21 20:51:26 +01:00

18 lines
357 B
Bash
Executable file

#!/bin/sh
if [ "$(uci -q get openmptcprouter.settings.disable_ipv6)" != "0" ]; then
uci -q batch <<-EOF >/dev/null
delete dhcp.lan.ra_default
delete dhcp.lan.dhcpv6
delete dhcp.lan.ra
set dhcp.lan.force=1
commit dhcp
EOF
rm -f /tmp/luci-indexcache
fi
uci -q batch <<-EOF >/dev/null
set dhcp.@dnsmasq[0].quietdhcp='1'
commit dhcp
EOF
exit 0