Browse Source

[icecast] add minimalistic init script

Signed-off-by: André Gaul <gaul@web-yard.de>
lilik-openwrt-22.03
André Gaul 10 years ago
parent
commit
edd031bca3
2 changed files with 16 additions and 0 deletions
  1. +2
    -0
      multimedia/icecast/Makefile
  2. +14
    -0
      multimedia/icecast/files/icecast.init

+ 2
- 0
multimedia/icecast/Makefile 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


+ 14
- 0
multimedia/icecast/files/icecast.init 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
}

Loading…
Cancel
Save