[package] update mpd to 0.15.2, cleanup init script (#6207)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@18508 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2009-11-23 22:11:40 +00:00
parent ab325fccc2
commit 6b0b3e78d2
2 changed files with 11 additions and 12 deletions

View File

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=mpd
PKG_VERSION:=0.15.4
PKG_VERSION:=0.15.5
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/musicpd
PKG_MD5SUM:=addbbcbbf8a24a2ce80db1ba5a1f91ca
PKG_MD5SUM:=078bd45c8266ac577e4a96fa38d1e534
include $(INCLUDE_DIR)/package.mk

View File

@ -13,21 +13,20 @@ start() {
mkdir -p $pld
fi
#create mpd db
/usr/bin/mpd --stdout --create-db
/usr/bin/mpd --stdout --create-db
#optional export for mpc
#export MPD_HOST=127.0.0.1
#export MPD_HOST=127.0.0.1
#start mpd
/usr/bin/mpd
/usr/bin/mpd
#generate playlist and start to play
/usr/bin/mpc listall | /usr/bin/mpc add -
/usr/bin/mpc play
/usr/bin/mpc repeat
/usr/bin/mpc listall | /usr/bin/mpc add -
/usr/bin/mpc play
/usr/bin/mpc repeat
}
stop() {
killall mpd
}