1 mpd_test=$(pgrep -f /data/data/com.termux/files/usr/libexec/mpd)
5 mkdir -p ~/.mpd/playlists
9 if [ "x$CmdArgs" = x ] ; then
10 if [ -z "$MULTIPLE_MPDS" ] ; then
11 if [ -n "$mpd_test" ] ; then
12 echo -n "restart music player daemon (y/n)? "
14 if echo "$answer" | grep -iq "^y" ;then
15 echo "restarting music player daemon"
16 pgrep -f /data/data/com.termux/files/usr/libexec/mpd | while read line; do kill "$line"; done
22 echo "starting mpd the music player daemon"
25 chmod +rw ~/.mpd/* 2>&1 > /dev/null
26 rm -rf ~/.mpd/pid 2>&1 > /dev/null