package/iwd: update S40iwd (use long options)
PATCH v3 1/3 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
---
Changes v1 -> v2:
- no changes
Changes v2 -> v3:
- no changes
--- package/iwd/S40iwd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
package/iwd/S40iwd +3 -2
@@ -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"
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 2/3 package/iwd: suppress S40iwd shellcheck warnings
- suppress S40iwd shellcheck warnings:
In package/iwd/S40iwd line 8:
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
^--------------------^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
In package/iwd/S40iwd line 15:
-- $IWD_ARGS
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
- remove package/iwd/S40iwd from .checkpackageignore
---
Changes v1 -> v2:
- remove 'git squash' leftover line from commit message
Changes v2 -> v3:
- move 'shellcheck disable=SC2086' line to where needed (suggested by Fiona Klute)
--- .checkpackageignore | 1 - package/iwd/S40iwd | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-)
.checkpackageignore +0 -1
@@ -584,7 +584,6 @@ 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 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
package/iwd/S40iwd +2 -0
@@ -5,11 +5,13 @@ PIDFILE="/var/run/$DAEMON.pid" IWD_ARGS="" +# shellcheck source=/dev/null [ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON" start() { printf 'Starting %s: ' "$DAEMON" mkdir -p /tmp/iwd/hotspot + # shellcheck disable=SC2086 # we need the word splitting start-stop-daemon --start --background --make-pidfile \ --pidfile "$PIDFILE" --exec "/usr/libexec/$DAEMON" \ -- $IWD_ARGS
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v3 2/3] package/iwd: suppress S40iwd shellcheck warnings
In reply of:
Quoted 6 lines
- suppress S40iwd shellcheck warnings:
In package/iwd/S40iwd line 8:
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"^--------------------^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
Quoted 7 lines
In package/iwd/S40iwd line 15:
-- $IWD_ARGS
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.- remove package/iwd/S40iwd from .checkpackageignore
Signed-off-by Peter Seiderer <[email protected]>
Applied to 2025.11.x. Thanks
Quoted 49 lines
---
Changes v1 -> v2:
- remove 'git squash' leftover line from commit messageChanges v2 -> v3:
- move 'shellcheck disable=SC2086' line to where needed (suggested by Fiona Klute)--- .checkpackageignore | 1 - package/iwd/S40iwd | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-).checkpackageignore +0
-1@@ -584,7 +584,6 @@ 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 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.Upstreampackage/iwd/S40iwd +2
-0@@ -5,11 +5,13 @@ PIDFILE="/var/run/$DAEMON.pid" IWD_ARGS="" +# shellcheck source=/dev/null [ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON" start() { printf 'Starting %s: ' "$DAEMON" mkdir -p /tmp/iwd/hotspot + # shellcheck disable=SC2086 # we need the word splitting start-stop-daemon --start --background --make-pidfile \ --pidfile "$PIDFILE" --exec "/usr/libexec/$DAEMON" \ -- $IWD_ARGSSignature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 3/3 package/ssdp-responder: update S50ssdpd (move shellcheck comment)
In reply to Peter Seiderer via buildroot- S50ssdpd: move shellcheck comment to the line where needed
---
Changes v2 -> v3:
- new patch
--- package/ssdp-responder/S50ssdpd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/ssdp-responder/S50ssdpd +1 -1
@@ -10,9 +10,9 @@ DAEMON_ARGS="" # shellcheck source=/dev/null [ -r "$CFGFILE" ] && . "$CFGFILE" -# shellcheck disable=SC2086 start() { printf 'Starting %s: ' "$DAEMON" + # shellcheck disable=SC2086 # we need the word splitting if start-stop-daemon -S -q -p "$PIDFILE" -x "$DAEMON" -- $DAEMON_ARGS; then echo "OK" else
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v3 3/3] package/ssdp-responder: update S50ssdpd (move shellcheck comment)
Quoted 3 lines · Peter Seiderer
- S50ssdpd: move shellcheck comment to the line where needed
Signed-off-by Peter Seiderer <[email protected]>
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v3 3/3] package/ssdp-responder: update S50ssdpd (move shellcheck comment)
In reply to Peter Seiderer via buildrootIn reply of:
Quoted 3 lines
- S50ssdpd: move shellcheck comment to the line where needed
Signed-off-by Peter Seiderer <[email protected]>
Applied to 2025.02.x and 2025.11.x. Thanks
Quoted 29 lines
---
Changes v2 -> v3:
- new patch--- package/ssdp-responder/S50ssdpd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/ssdp-responder/S50ssdpd +1
-1@@ -10,9 +10,9 @@ DAEMON_ARGS="" # shellcheck source=/dev/null [ -r "$CFGFILE" ] && . "$CFGFILE" -# shellcheck disable=SC2086 start() { printf 'Starting %s: ' "$DAEMON" + # shellcheck disable=SC2086 # we need the word splitting if start-stop-daemon -S -q -p "$PIDFILE" -x "$DAEMON" -- $DAEMON_ARGS; then echo "OK" elseSignature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines · On Tue, 5 Aug 2025 19:16:01 +0200 Peter Seiderer via buildroot…
- 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 <[email protected]>---
Changes v1 -> v2:
- no changes
Thanks, series applied. Sorry that it took so long to apply such a trivial series!
Best regards,
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
In reply of:
Quoted 6 lines
- 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 <[email protected]>
Applied to 2025.11.x. Thanks
Quoted 40 lines
---
Changes v1 -> v2:
- no changesChanges v2 -> v3:
- no changes--- package/iwd/S40iwd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)package/iwd/S40iwd +3
-2@@ -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"Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot