From: Hugo Villeneuve Date: Sat, 2 Mar 2024 21:40:45 +0000 (-0500) Subject: Add support for custom MPD music directory X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=0e3822b5dc547d2687703637565c5e36812e69ec;p=yocto%2Fmeta-hvmpd.git Add support for custom MPD music directory --- diff --git a/recipes-multimedia/musicpd/mpd_%.bbappend b/recipes-multimedia/musicpd/mpd_%.bbappend index 8e65fd0..9b5c0e3 100644 --- a/recipes-multimedia/musicpd/mpd_%.bbappend +++ b/recipes-multimedia/musicpd/mpd_%.bbappend @@ -28,6 +28,11 @@ do_install:append:rpi() { } do_install:append() { + if [ "${MPD_MUSIC_DIR}" != "" ]; then + sed -i -e 's:^\(music_directory\).*:\1 \"${MPD_MUSIC_DIR}\":g' \ + ${D}/${sysconfdir}/mpd.conf + fi + echo "zeroconf_enabled \"yes\"" >> ${D}/${sysconfdir}/mpd.conf echo "zeroconf_name \"Serveur Musique MPD\"" >> ${D}/${sysconfdir}/mpd.conf echo "audio_output {" >> ${D}/${sysconfdir}/mpd.conf