🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay 2022-09-10 15:35:43 -04:00
parent c8e0a5153f
commit 9e6ec0f00e
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F

View File

@ -48,11 +48,12 @@ __exec_bash() {
} }
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
__mpd_start() { __mpd_start() {
pgrep mpd &>/dev/null || mpd /config/mpd/mpd.conf
sleep 10 sleep 10
mpd /config/mpd/mpd.conf
sleep 5
if pgrep mpd &>/dev/null; then if pgrep mpd &>/dev/null; then
mpc status | grep -q 'playing' || mpc play &>/dev/null mpc status 2>&1 | grep -q 'playing' || mpc play &>/dev/null
else
echo "MPD seems to have not started" 1>&2
fi fi
} }
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -