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