[packages] mtd: make grep for playlist config option more explicit to discard comments (#7499)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@21860 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9759a26b21
commit
b9dd3fd32b
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=mpd
|
PKG_NAME:=mpd
|
||||||
PKG_VERSION:=0.15.8
|
PKG_VERSION:=0.15.8
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=@SF/musicpd
|
PKG_SOURCE_URL:=@SF/musicpd
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2007 OpenWrt.org
|
# Copyright (C) 2007-2010 OpenWrt.org
|
||||||
START=93
|
START=93
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
#create mpd directories
|
#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
|
if [ ! -d $pld ]; then
|
||||||
mkdir -p $pld
|
mkdir -p $pld
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user