aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/mpd.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/board/mpd.sh b/board/mpd.sh
index 5c86e69..7313231 100644
--- a/board/mpd.sh
+++ b/board/mpd.sh
@@ -17,7 +17,7 @@ database {
# Directory where user-made playlists are stored (RW)
#playlist_directory "nfs://192.168.0.4/home/mpd/playlists"
-playlist_directory "/tmp/"
+playlist_directory "/tmp/playlists"
# Log file (RW)
# disable the logs
@@ -81,13 +81,15 @@ __EOF__
cat << __EOF__ > "${TARGET_DIR}/etc/systemd/system/playlists.service"
[Unit]
Description=Playlists
-After=network-online.target
-Wants=network-online.target
+#After=network-online.target
+#Wants=network-online.target
+Before=mpd.target
[Service]
Type=unit
-ExecStartPre=sleep 3
-ExecStart=find /home/ -name '*.m3u' -exec cp {} /tmp \;
+#ExecStartPre=sleep 3
+ExecStartPre=mkdir /tmp/playlists
+ExecStart=find /home/ -name '*.m3u' -exec cp {} /tmp/playlists \;
[Install]
WantedBy=multi-user.target