12-19-2018, 10:15 PM
@Herman,
here is a short list composed of things you have to do for "your" symlink: This is not my own work, I just collected different things and put them together:
1. Create Symlink
sudo ln -s /var/lib/mpd/music /var/www/cover
2. Create a file named "symcoverlink" (or whatever you like) in /etc/init.d
sudo nano /etc/init.d/symcoverlink
3. Add the follwing content
#! /bin/sh
### BEGIN INIT INFO
# Provides: symcoverlink
# Required-Start: $syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Erzeuge Cover SymlinkSymlink wird erstellt
# Description:
### END INIT INFO
case "$1" in
start)
echo "Symlink wird erstellt"
# erzeuge Symlink
ln -s /var/lib/mpd/music /var/www/cover
;;
stop)
echo "Symlink wird geloescht"
# loesche Symlink
rm /var/www/cover
;;
*)
echo "Benutzt: /etc/init.d/symcoverlink {start|stop}"
exit 1
;;
esac
exit 0
4. Save the File
5. Make it executable
sudo chmod 755 /etc/init.d/symcoverlink
6. for test purpose
sudo /etc/init.d/symcoverlink start - creates the Symlink
sudo /etc/init.d/symcoverlink stop - deletes the Symlink
7. edit rc.local and insert a line at the end
sudo nano /etc/rc.local
7a. Insert
su root -c '/etc/init.d/symcoverlink start' - this creates the symlink during boot as user root
8. In MpDroid enter http://moode/cover as your cover-root.
I Hope that helps a bit.
Have fun and keep the music playing
Duke.G
here is a short list composed of things you have to do for "your" symlink: This is not my own work, I just collected different things and put them together:
1. Create Symlink
sudo ln -s /var/lib/mpd/music /var/www/cover
2. Create a file named "symcoverlink" (or whatever you like) in /etc/init.d
sudo nano /etc/init.d/symcoverlink
3. Add the follwing content
#! /bin/sh
### BEGIN INIT INFO
# Provides: symcoverlink
# Required-Start: $syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Erzeuge Cover SymlinkSymlink wird erstellt
# Description:
### END INIT INFO
case "$1" in
start)
echo "Symlink wird erstellt"
# erzeuge Symlink
ln -s /var/lib/mpd/music /var/www/cover
;;
stop)
echo "Symlink wird geloescht"
# loesche Symlink
rm /var/www/cover
;;
*)
echo "Benutzt: /etc/init.d/symcoverlink {start|stop}"
exit 1
;;
esac
exit 0
4. Save the File
5. Make it executable
sudo chmod 755 /etc/init.d/symcoverlink
6. for test purpose
sudo /etc/init.d/symcoverlink start - creates the Symlink
sudo /etc/init.d/symcoverlink stop - deletes the Symlink
7. edit rc.local and insert a line at the end
sudo nano /etc/rc.local
7a. Insert
su root -c '/etc/init.d/symcoverlink start' - this creates the symlink during boot as user root
8. In MpDroid enter http://moode/cover as your cover-root.
I Hope that helps a bit.
Have fun and keep the music playing
Duke.G
1x RPi 3B, 1x RPi 4, 1x RPi 5, Moode 9; 6k flac Songs; 180k MP3 Songs; Asset-UpnP 186k Songs
The blues has got a hold of me, I believe I'm gettin' dizzy - ZZ Top