summaryrefslogtreecommitdiff
path: root/recipes-support/dnsmasq/files/init.patch
blob: b6045d29b3a370c7e22e7193e5ade70a309bc6fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -uprN orig/init new/init
--- orig/init	2019-10-08 20:19:12.000000000 +0300
+++ new/init	2021-02-04 14:06:17.000000000 +0200
@@ -13,6 +13,8 @@ then
 	. /etc/default/$NAME
 fi
 
+[[ "$ENABLED" = "yes" ]] || exit
+
 DNSMASQ_CONF="/etc/dnsmasq.conf"
 test "/etc/dnsmasq.d/*" != '/etc/dnsmasq.d/*' && DNSMASQ_CONF="${DNSMASQ_CONF} /etc/dnsmasq.d/*"