diff options
Diffstat (limited to 'package/mpd')
-rw-r--r-- | package/mpd/files/mpd.init | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/mpd/files/mpd.init b/package/mpd/files/mpd.init index d71797a0d..97b883a11 100644 --- a/package/mpd/files/mpd.init +++ b/package/mpd/files/mpd.init @@ -11,6 +11,12 @@ autostart) exec sh $0 start ;; start) + # check group membership + id mpd | grep audio >/dev/null 2>&1 + if [ $? -ne 0 ];then + echo "mpd user must be in group audio." + exit 1 + fi mpd ;; stop) |