[icecast] add minimalistic init script

Signed-off-by: André Gaul <gaul@web-yard.de>
This commit is contained in:
André Gaul 2014-07-25 17:17:29 +02:00
parent 369d05aeb1
commit edd031bca3
2 changed files with 16 additions and 0 deletions

View File

@ -77,6 +77,8 @@ endef
define Package/icecast/install
$(INSTALL_DIR) $(1)/etc
$(CP) $(PKG_INSTALL_DIR)/etc/icecast.xml $(1)/etc/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/icecast.init $(1)/etc/init.d/icecast
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/icecast $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/share/icecast

View File

@ -0,0 +1,14 @@
#!/bin/sh /etc/rc.common
# Example script
# Copyright (C) 2014 OpenWrt.org
START=99
STOP=15
start() {
service_start /usr/bin/icecast -c /etc/icecast.xml -b
}
stop() {
service_stop /usr/bin/icecast
}