Signed-off-by: Nerijus Baliūnas <neri...@users.sourceforge.net> Index: net/udpxy/Makefile =================================================================== --- net/udpxy/Makefile (revision 29245) +++ net/udpxy/Makefile (working copy) @@ -42,6 +42,8 @@ INSTALLROOT="$(PKG_INSTALL_DIR)/usr" define Package/udpxy/install + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/udpxy.init $(1)/etc/init.d/udpxy $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udpxy $(1)/usr/bin/ ln -sf udpxy $(1)/usr/bin/udpxrec Index: net/udpxy/files/udpxy.init =================================================================== --- net/udpxy/files/udpxy.init (revision 0) +++ net/udpxy/files/udpxy.init (revision 0) @@ -0,0 +1,18 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2010-2011 OpenWrt.org + +START=99 +STOP=10 + +SERVICE_DAEMONIZE=1 +SERVICE_WRITE_PID=1 + +OPTIONS="-T -S -p 4022" + +start() { + service_start /usr/bin/udpxy $OPTIONS +} + +stop() { + service_stop /usr/bin/udpxy +}
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel