diff options
Diffstat (limited to 'main/dnsmasq/dnsmasq.initd')
-rw-r--r-- | main/dnsmasq/dnsmasq.initd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/dnsmasq/dnsmasq.initd b/main/dnsmasq/dnsmasq.initd index be09548d5df..85a3b42db82 100644 --- a/main/dnsmasq/dnsmasq.initd +++ b/main/dnsmasq/dnsmasq.initd @@ -14,6 +14,7 @@ description_reload="Clear cache and reload hosts files" : ${user:="dnsmasq"} : ${group:="dnsmasq"} : ${setup_bridge:="yes"} +: ${setup_command:=""} command="/usr/sbin/dnsmasq" # Tell dnsmasq to not create pidfile, that's responsibility of init system. @@ -36,7 +37,7 @@ fi depend() { provide dns need localmount net - after bootmisc + after bootmisc dbus use logger } @@ -108,6 +109,10 @@ start_pre() { command_args="$command_args --strict-order --bind-interfaces --except-interface=lo --interface=$BRIDGE" command_args="$command_args --dhcp-range $BRIDGE_DHCP_RANGE --dhcp-lease-max=$BRIDGE_DHCP_MAX --dhcp-no-override --dhcp-leasefile=$leasefile --dhcp-authoritative" fi + + if command -v "$setup_command" >/dev/null; then + $setup_command || return 1 + fi } stop_post() { |