Files
openwrt-kernel5.4-nss-qsdk10.0/package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh
2025-06-24 13:14:22 +02:00

9 lines
189 B
Bash
Executable File

#!/bin/sh
[ "$(uci get dhcp.@dnsmasq[0].resolvfile)" = "/tmp/resolv.conf.auto" ] && {
uci set dhcp.@dnsmasq[0].resolvfile="/tmp/resolv.conf.d/resolv.conf.auto"
uci commit dhcp
}
exit 0