mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-23 09:01:06 +02:00
added a init.d script to fonera-mp3d
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8734 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0cb4d5d141
commit
947311329f
@ -57,6 +57,8 @@ define Package/fonera-mp3d/install
|
||||
ln -sf mp3.cgi $(1)/www/cgi-bin/mp3_remote.cgi
|
||||
$(INSTALL_DIR) $(1)/www/local
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/cgi/{stylesheet.css,json.js} $(1)/www/local/
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/mp3d.init $(1)/etc/init.d/mp3d
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,fonera-mp3d))
|
||||
|
12
package/fonera-mp3/files/mp3d.init
Normal file
12
package/fonera-mp3/files/mp3d.init
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2007 OpenWrt.org
|
||||
|
||||
START=90
|
||||
|
||||
start() {
|
||||
/usr/bin/mp3d
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall mp3d
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user