From 0e3822b5dc547d2687703637565c5e36812e69ec Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sat, 2 Mar 2024 16:40:45 -0500 Subject: [PATCH] Add support for custom MPD music directory --- recipes-multimedia/musicpd/mpd_%.bbappend | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.20.1