diff --git a/.checkpackageignore b/.checkpackageignore index 4591ff173a..7697fd2ea1 100644 --- a/.checkpackageignore +++ b/.checkpackageignore @@ -584,7 +584,7 @@ package/irqbalance/S13irqbalance Shellcheck lib_sysv.Indent lib_sysv.Variables package/irrlicht/0001-override-CPPFLAGS-CXXFLAGS-and-CFLAGS-in-Makefile.patch lib_patch.Upstream package/irrlicht/0002-makefile-override-LDFLAGS-and-remove-obsolete-X11R6-.patch lib_patch.Upstream package/iucode-tool/S00iucode-tool lib_sysv.Variables -package/iwd/S40iwd Shellcheck lib_sysv.Variables +package/iwd/S40iwd Shellcheck package/janus-gateway/0001-disable-ssp.patch lib_patch.Upstream package/kexec-lite/0001-clean-restart.patch lib_patch.Upstream package/keyutils/0001-fix-install-rule.patch lib_patch.Upstream diff --git a/package/iwd/S40iwd b/package/iwd/S40iwd index 6714ca9956..7858ff3e42 100644 --- a/package/iwd/S40iwd +++ b/package/iwd/S40iwd @@ -1,16 +1,16 @@ #!/bin/sh -DAEMON="/usr/libexec/iwd" -PIDFILE="/var/run/iwd.pid" +DAEMON="iwd" +PIDFILE="/var/run/$DAEMON.pid" IWD_ARGS="" -[ -r "/etc/default/iwd" ] && . "/etc/default/iwd" +[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON" start() { - printf "Starting iwd:" + printf 'Starting %s: ' "$DAEMON" mkdir -p /tmp/iwd/hotspot - start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "$DAEMON" \ + start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/libexec/$DAEMON" \ -- $IWD_ARGS status=$? if [ "$status" -eq 0 ]; then @@ -22,7 +22,7 @@ start() { } stop() { - printf "Stopping iwd:" + printf 'Stopping %s: ' "$DAEMON" start-stop-daemon -K -q -p "$PIDFILE" status=$? if [ "$status" -eq 0 ]; then