[packages] mtd: make grep for playlist config option more explicit to discard comment...
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 21 Jun 2010 21:51:04 +0000 (21:51 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 21 Jun 2010 21:51:04 +0000 (21:51 +0000)
SVN-Revision: 21860

sound/mpd/Makefile
sound/mpd/files/mpd.init

index 3727c3af7d03221ed7980387ad49da9868e5108f..8c7aca5ef1c80d503eb9cb27c280d8668b835e8e 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mpd
 PKG_VERSION:=0.15.8
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=@SF/musicpd
index 381c592d171dfc62799054f0f617f5befb6f7802..68dd361f2f42ee94cd7065fbed0a03778c09d90e 100644 (file)
@@ -1,10 +1,10 @@
 #!/bin/sh /etc/rc.common
-# Copyright (C) 2007 OpenWrt.org
+# Copyright (C) 2007-2010 OpenWrt.org
 START=93
 
 start() {
        #create mpd directories
-       pld=`grep playlist_directory /etc/mpd.conf | cut -d "\"" -f 2 | sed "s/~/\/root/g"`
+       pld=`grep ^playlist_directory /etc/mpd.conf | cut -d "\"" -f 2 | sed "s/~/\/root/g"`
        if [ ! -d $pld ]; then
                mkdir -p $pld
        fi