diff options
Diffstat (limited to 'recipes-support')
-rw-r--r-- | recipes-support/dnsmasq/files/default | 1 | ||||
-rw-r--r-- | recipes-support/dnsmasq/files/init | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/recipes-support/dnsmasq/files/default b/recipes-support/dnsmasq/files/default new file mode 100644 index 0000000..98190d2 --- /dev/null +++ b/recipes-support/dnsmasq/files/default @@ -0,0 +1 @@ +ENABLED="no" diff --git a/recipes-support/dnsmasq/files/init b/recipes-support/dnsmasq/files/init index 51c95df..5f457f8 100644 --- a/recipes-support/dnsmasq/files/init +++ b/recipes-support/dnsmasq/files/init @@ -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/*" |