diff options
Diffstat (limited to 'board/mpd.sh')
-rw-r--r-- | board/mpd.sh | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/board/mpd.sh b/board/mpd.sh new file mode 100644 index 0000000..7644b94 --- /dev/null +++ b/board/mpd.sh @@ -0,0 +1,47 @@ +create_missing_dir "/var/lib/mpd/" +if ! grep -qE '/var/lib/mpd' "${TARGET_DIR}/etc/fstab"; then + cat << __EOF__ >> "${TARGET_DIR}/etc/fstab" +tmpfs /var/lib/mpd tmpfs rw 0 0 +__EOF__ +fi + +cat << __EOF__ > "${TARGET_DIR}/etc/mpd.conf" +# Use a proxy to another instance +music_directory "nfs://192.168.0.4/home/mpd/music" +database { + plugin "proxy" + host "192.168.0.4" + port "6600" +} + + +# Directory where user-made playlists are stored (RW) +#playlist_directory "nfs://192.168.0.4/home/mpd/playlists" +playlist_directory "/tmp/" + +# Log file (RW) +# disable the logs +log_file "/dev/null" + +# Process ID file (RW) +pid_file "/var/run/mpd.pid" + +# State file (RW) +state_file "/var/lib/mpd/state" + +# User id to run the daemon as +#user "nobody" + +# TCP socket binding +bind_to_address "any" +#bind_to_address "localhost" + +# Unix socket to listen on +bind_to_address "/var/lib/mpd/socket" + +audio_output { + type "pulse" + name "Pulseaudio" + server "127.0.0.1" +} +__EOF__ |