mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-28 04:50:36 -09:00
package/iwd: update S40iwd (use long options)
- use long options (as suggested in [1] example)
- drop '-q'/quiet option from startup
[1] https://nightly.buildroot.org/#adding-packages-start-script
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 58a19f3240)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
69d6fd1be5
commit
f7b4ef3d38
@@ -10,7 +10,8 @@ IWD_ARGS=""
|
||||
start() {
|
||||
printf 'Starting %s: ' "$DAEMON"
|
||||
mkdir -p /tmp/iwd/hotspot
|
||||
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/libexec/$DAEMON" \
|
||||
start-stop-daemon --start --background --make-pidfile \
|
||||
--pidfile "$PIDFILE" --exec "/usr/libexec/$DAEMON" \
|
||||
-- $IWD_ARGS
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
@@ -23,7 +24,7 @@ start() {
|
||||
|
||||
stop() {
|
||||
printf 'Stopping %s: ' "$DAEMON"
|
||||
start-stop-daemon -K -q -p "$PIDFILE"
|
||||
start-stop-daemon --stop --quiet --pidfile "$PIDFILE"
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
|
||||
Reference in New Issue
Block a user