1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2007-2011 OpenWrt.org
7 #create mpd directories
8 pld=`grep ^playlist_directory /etc/mpd.conf | cut -d "\"" -f 2 | sed "s/~/\/root/g"`
13 # Set the initial volume to something manageable
14 [ -x /usr/bin/amixer ] && /usr/bin/amixer set PCM 40
16 if [ -x /bin/nice ]; then
17 # This has real-time constraints, so let's at least tell the OS
18 # that this should have higher priority to avoid skipping
19 # when doing other things in the background.
23 service_start /usr/bin/mpd
27 service_stop /usr/bin/mpd