diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-05-14 20:35:05 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-05-14 20:35:05 +0000 |
commit | b6f0493fefe66909056a99634e1ecd514fea2f58 (patch) | |
tree | b57327c5ecc5f828462f7cb5ad152d7ee1eb4462 /openwrt/package/chillispot/files | |
parent | e7ab00396c372f0398f09b3c33b56429438cc0ac (diff) | |
download | mtk-20170518-b6f0493fefe66909056a99634e1ecd514fea2f58.zip mtk-20170518-b6f0493fefe66909056a99634e1ecd514fea2f58.tar.gz mtk-20170518-b6f0493fefe66909056a99634e1ecd514fea2f58.tar.bz2 |
Convert chillispot to new packaging style
SVN-Revision: 895
Diffstat (limited to 'openwrt/package/chillispot/files')
-rw-r--r-- | openwrt/package/chillispot/files/chillispot.init | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/openwrt/package/chillispot/files/chillispot.init b/openwrt/package/chillispot/files/chillispot.init new file mode 100644 index 0000000..289b1fe --- /dev/null +++ b/openwrt/package/chillispot/files/chillispot.init @@ -0,0 +1,20 @@ +#!/bin/sh + +RUN_D=/var/run +PID_F=$RUN_D/chilli.pid + +case $1 in + start) + /sbin/insmod tun >/dev/null 2>&1 + [ -d $RUN_D ] || mkdir -p $RUN_D + /usr/sbin/chilli + ;; + stop) + [ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1 + ;; + *) + echo "usage: $0 (start|stop)" + exit 1 +esac + +exit $? |