[icecast] add minimalistic init script
Signed-off-by: André Gaul <gaul@web-yard.de>
This commit is contained in:
parent
369d05aeb1
commit
edd031bca3
|
@ -77,6 +77,8 @@ endef
|
||||||
define Package/icecast/install
|
define Package/icecast/install
|
||||||
$(INSTALL_DIR) $(1)/etc
|
$(INSTALL_DIR) $(1)/etc
|
||||||
$(CP) $(PKG_INSTALL_DIR)/etc/icecast.xml $(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_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/icecast $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/icecast $(1)/usr/bin/
|
||||||
$(INSTALL_DIR) $(1)/usr/share/icecast
|
$(INSTALL_DIR) $(1)/usr/share/icecast
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue