diff options
Diffstat (limited to 'package/mpd/files')
-rw-r--r-- | package/mpd/files/mpd.conf | 1 | ||||
-rw-r--r-- | package/mpd/files/mpd.init | 4 | ||||
-rw-r--r-- | package/mpd/files/mpd.postinst | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/package/mpd/files/mpd.conf b/package/mpd/files/mpd.conf index 4e3725119..10b1e6918 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 diff --git a/package/mpd/files/mpd.init b/package/mpd/files/mpd.init index 97b883a11..29482b365 100644 --- a/package/mpd/files/mpd.init +++ b/package/mpd/files/mpd.init @@ -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 |