diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2016-12-20 22:13:40 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2016-12-21 20:35:49 +0100 |
commit | 00dbfa176474a6b441c57023a2d03c0c56a0b063 (patch) | |
tree | bfc2c57cdb6472b2c0c2cf3629f2460558e9e0f5 /package | |
parent | 05abcf518d5e2b7d6526fd7a87a88a268030694a (diff) | |
download | upstream-00dbfa176474a6b441c57023a2d03c0c56a0b063.tar.gz upstream-00dbfa176474a6b441c57023a2d03c0c56a0b063.tar.bz2 upstream-00dbfa176474a6b441c57023a2d03c0c56a0b063.zip |
odhcpd: Use procd_send_signal in odhcpd-update file
Let dnsmasq reread the leasefile by using procd_send_signal
which triggers procd to send SIGHUP kill signal by default
if signal is not specified
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'package')
-rwxr-xr-x | package/network/services/odhcpd/files/odhcpd-update | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/package/network/services/odhcpd/files/odhcpd-update b/package/network/services/odhcpd/files/odhcpd-update index 5f800aac60..9bc7abcc1c 100755 --- a/package/network/services/odhcpd/files/odhcpd-update +++ b/package/network/services/odhcpd/files/odhcpd-update @@ -1,8 +1,6 @@ #!/bin/sh -# Make dnsmasq reread hostfile +# Make dnsmasq reread hostfile by sending SIGHUP signal -pid=$(pidof dnsmasq) +. $IPKG_INSTROOT/lib/functions/procd.sh -for i in $pid; do - [ "$(readlink /proc/$i/exe)" = "/usr/sbin/dnsmasq" ] && kill -SIGHUP $i -done +procd_send_signal dnsmasq |