diff options
author | Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | 2020-05-10 13:47:05 +0100 |
---|---|---|
committer | Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | 2020-05-10 20:40:30 +0100 |
commit | ed91d72eac34c58f7c5cbe7543b475417ebf1c9e (patch) | |
tree | 217f32841d314ab7398977765fcd40720f0aa597 /package/network/services/dnsmasq/files | |
parent | e31e5c4ea492257a328613c6217d38119dc53ed6 (diff) | |
download | upstream-ed91d72eac34c58f7c5cbe7543b475417ebf1c9e.tar.gz upstream-ed91d72eac34c58f7c5cbe7543b475417ebf1c9e.tar.bz2 upstream-ed91d72eac34c58f7c5cbe7543b475417ebf1c9e.zip |
dnsmasq: hotplug script tidyup
Hotplug scripts are sourced so the #!/bin/sh is superfluous/deceptive.
Re-arrange script to only source 'procd' if we get to the stage of
needing to signal the process, reduce hotplug processing load a little.
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Diffstat (limited to 'package/network/services/dnsmasq/files')
-rw-r--r-- | package/network/services/dnsmasq/files/dnsmasqsec.hotplug | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasqsec.hotplug b/package/network/services/dnsmasq/files/dnsmasqsec.hotplug index 781d533734..71f5e68b2d 100644 --- a/package/network/services/dnsmasq/files/dnsmasqsec.hotplug +++ b/package/network/services/dnsmasq/files/dnsmasqsec.hotplug @@ -1,14 +1,11 @@ -#!/bin/sh - -. /lib/functions/procd.sh - TIMEVALIDFILE="/var/state/dnsmasqsec" -[ "$ACTION" = stratum ] || exit 0 +[ "$ACTION" = "stratum" ] || exit 0 [ -f "$TIMEVALIDFILE" ] || { echo "ntpd says time is valid" >$TIMEVALIDFILE /etc/init.d/dnsmasq enabled && { + . /lib/functions/procd.sh procd_send_signal dnsmasq '*' INT } } |