summaryrefslogtreecommitdiff
path: root/package/mpd/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/mpd/files')
-rw-r--r--package/mpd/files/mpd.conf24
-rw-r--r--package/mpd/files/mpd.init6
-rw-r--r--package/mpd/files/mpd.postinst2
3 files changed, 28 insertions, 4 deletions
diff --git a/package/mpd/files/mpd.conf b/package/mpd/files/mpd.conf
index 4e3725119..49ef7d4f7 100644
--- a/package/mpd/files/mpd.conf
+++ b/package/mpd/files/mpd.conf
@@ -3,6 +3,7 @@ user "mpd"
music_directory "~/music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/database"
+pid_file "/var/run/mpd/mpd.pid"
log_file "~/.mpd/log"
error_file "~/.mpd/error-log"
# An example of an ALSA output
@@ -12,7 +13,26 @@ audio_output {
device "hw:0,0" # optional
format "44100:16:2" # optional
}
+# An example of an ESD output
+#audio_output {
+# type "ao"
+# driver "esd"
+# name "esd"
+#}
+
# Volume control mixer
mixer_type "alsa"
-mixer_device "default"
-mixer_control "PCM"
+
+# shout example
+#audio_output {
+# type "shout"
+# name "personal mpd stream"
+# host "127.0.0.1"
+# port "8000"
+# mount "/mpd"
+# quality "5.0"
+# format "44100:16:2"
+# user "source"
+# password "musicrockz"
+#}
+
diff --git a/package/mpd/files/mpd.init b/package/mpd/files/mpd.init
index 97b883a11..1e7cf871f 100644
--- a/package/mpd/files/mpd.init
+++ b/package/mpd/files/mpd.init
@@ -1,6 +1,6 @@
#!/bin/sh
#PKG mpd
-#INIT 60
+#INIT 80
. /etc/rc.conf
@@ -17,6 +17,10 @@ start)
echo "mpd user must be in group audio."
exit 1
fi
+ if [ ! -d /var/run/mpd ];then
+ mkdir -p /var/run/mpd
+ chown mpd:mpd /var/run/mpd
+ fi
mpd
;;
stop)
diff --git a/package/mpd/files/mpd.postinst b/package/mpd/files/mpd.postinst
index 361adeec0..957d973cb 100644
--- a/package/mpd/files/mpd.postinst
+++ b/package/mpd/files/mpd.postinst
@@ -2,5 +2,5 @@
. $IPKG_INSTROOT/etc/functions.sh
gid=$(get_next_gid)
add_group mpd $gid
-add_user mpd $(get_next_uid) $gid /mnt
+add_user mpd $(get_next_uid) $gid /mnt/media
add_rcconf mpd