From 6b0b3e78d207c602e4566c9ec60519664fad3e81 Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 23 Nov 2009 22:11:40 +0000 Subject: [PATCH] [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 --- sound/mpd/Makefile | 4 ++-- sound/mpd/files/mpd.init | 19 +++++++++---------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/sound/mpd/Makefile b/sound/mpd/Makefile index fba83a4c9..3d74a14f4 100644 --- a/sound/mpd/Makefile +++ b/sound/mpd/Makefile @@ -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 diff --git a/sound/mpd/files/mpd.init b/sound/mpd/files/mpd.init index e0579f196..017ad7701 100644 --- a/sound/mpd/files/mpd.init +++ b/sound/mpd/files/mpd.init @@ -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 } -