diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-05-17 00:23:24 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-05-17 00:23:24 +0000 |
commit | fe43906dd086d0f3e0386b74c034e29f8ce23344 (patch) | |
tree | 152fa739ebd238d02614a281362f3d600c6a76f7 /package/freeradius/files | |
parent | 12ed01d836407ddef7dd449c87a9dc8655d983f5 (diff) | |
download | upstream-fe43906dd086d0f3e0386b74c034e29f8ce23344.tar.gz upstream-fe43906dd086d0f3e0386b74c034e29f8ce23344.tar.bz2 upstream-fe43906dd086d0f3e0386b74c034e29f8ce23344.zip |
Add freeradius package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@918 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/freeradius/files')
-rw-r--r-- | package/freeradius/files/radiusd.init | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/package/freeradius/files/radiusd.init b/package/freeradius/files/radiusd.init new file mode 100644 index 0000000000..3ec16896ac --- /dev/null +++ b/package/freeradius/files/radiusd.init @@ -0,0 +1,23 @@ +#!/bin/sh + +DEFAULT=/etc/default/radiusd +LOG_D=/var/log/radius +RUN_D=/var/run +PID_F=$RUN_D/radiusd.pid +[ -f $DEFAULT ] && . $DEFAULT + +case $1 in + start) + [ -d $LOG_D ] || mkdir -p $LOG_D + [ -d $RUN_D ] || mkdir -p $RUN_D + radiusd $OPTIONS + ;; + stop) + [ -f $PID_F ] && kill $(cat $PID_F) + ;; + *) + echo "usage: $0 (start|stop)" + exit 1 +esac + +exit $? |