projects
/
yocto
/
meta-hvmpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dccfdf
)
Add support for custom MPD music directory
author
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 2 Mar 2024 21:40:45 +0000
(16:40 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Tue, 28 May 2024 19:00:29 +0000
(15:00 -0400)
recipes-multimedia/musicpd/mpd_%.bbappend
patch
|
blob
|
history
diff --git
a/recipes-multimedia/musicpd/mpd_%.bbappend
b/recipes-multimedia/musicpd/mpd_%.bbappend
index
8e65fd0
..
9b5c0e3
100644
(file)
--- 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