diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-05-14 20:32:03 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-05-14 20:32:03 +0000 |
commit | e7ab00396c372f0398f09b3c33b56429438cc0ac (patch) | |
tree | 586fcdc3b5931179810a976e29bbeaafbe1cfa78 /openwrt/package/siproxd/files | |
parent | 31f91ef55efae901e919bed291d779b9ff31a4ca (diff) | |
download | mtk-20170518-e7ab00396c372f0398f09b3c33b56429438cc0ac.zip mtk-20170518-e7ab00396c372f0398f09b3c33b56429438cc0ac.tar.gz mtk-20170518-e7ab00396c372f0398f09b3c33b56429438cc0ac.tar.bz2 |
Add siproxd package
SVN-Revision: 894
Diffstat (limited to 'openwrt/package/siproxd/files')
-rw-r--r-- | openwrt/package/siproxd/files/siproxd.init | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/openwrt/package/siproxd/files/siproxd.init b/openwrt/package/siproxd/files/siproxd.init new file mode 100644 index 0000000..f8739d4 --- /dev/null +++ b/openwrt/package/siproxd/files/siproxd.init @@ -0,0 +1,21 @@ +#!/bin/sh + +BIN=siproxd +DEFAULT=/etc/default/$BIN +RUN_D=/var/run +PID_F=$RUN_D/$BIN.pid +[ -f $DEFAULT ] && . $DEFAULT + +case $1 in + start) + mkdir -p $RUN_D + $BIN $OPTIONS + ;; + stop) + [ -f $PID_F ] && kill $(cat $PID_F) + ;; + *) + echo "usage: $0 (start|stop)" + exit 1 +esac +exit $? |