package/mpd/S95mpd: avoid unnecessary exit

The exit status of the last command automatically becomes the exit
status of the script. And if there is no explicit exit shellcheck
accepts unused functions (here: start/stop/... called via variable).

Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Tested-by: Andreas Ziegler <br025@umbiko.net>
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
(cherry picked from commit 118ffb20b5)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Fiona Klute 2026-06-06 20:20:29 +02:00 committed by Thomas Perale
commit 26af331ea3

View file

@ -2,7 +2,6 @@
#
# S95mpd Starts Music Player daemon.
#
# shellcheck disable=SC2317 # functions are called via variable
DAEMON="mpd"
PIDFILE="/var/run/$DAEMON.pid"
@ -57,5 +56,3 @@ case "$1" in
echo "Usage: $0 {start|stop|reload|restart}"
exit 1
esac
exit $?