[OpenWrt-Devel] [PATCH] dnsmasq: fix uci-defaults script to exit 0 so it is cleaned up

Russell Senior russell at personaltelco.net
Tue Feb 18 01:16:10 EST 2020


A file, package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh,
was added in commit 6a2855212096d2c486961a0841b037bae4b75de7, but it
does not exit in a way that tells the uci-defaults mechanism that it
succeeded, and so it is not cleaned up after running successfully. Add
an exit 0 to the end to correct that.

Signed-off-by: Russell Senior <russell at personaltelco.net>
---
 .../dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh        | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh b/package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh
index c78faa112d..480e2df471 100755
--- a/package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh
+++ b/package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh
@@ -4,3 +4,5 @@
 	uci set dhcp. at dnsmasq[0].resolvfile="/tmp/resolv.conf.d/resolv.conf.auto"
 	uci commit dhcp
 }
+
+exit 0
-- 
2.25.0


-- 
Russell Senior, President
russell at personaltelco.net

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list