added a init.d script to fonera-mp3d

SVN-Revision: 8734
This commit is contained in:
John Crispin 2007-09-10 21:19:21 +00:00
parent c4c29e8b68
commit 9dc06a4c2e
2 changed files with 14 additions and 0 deletions

View file

@ -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))

View file

@ -0,0 +1,12 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2007 OpenWrt.org
START=90
start() {
/usr/bin/mp3d
}
stop() {
killall mp3d
}