dnsmasq: rework init procedure
[openwrt.git] / package / network / services / dnsmasq / files / dnsmasq.hotplug
diff --git a/package/network/services/dnsmasq/files/dnsmasq.hotplug b/package/network/services/dnsmasq/files/dnsmasq.hotplug
new file mode 100644 (file)
index 0000000..ca5d10c
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ "$ACTION" = ifup ] || exit 0
+
+/etc/init.d/dnsmasq enabled && /etc/init.d/dnsmasq start