source: freewrt/package/openvpn/files/openvpn.init@ 93451a15

Last change on this file since 93451a15 was 93451a15, checked in by Dirk Nehring <dnehring@…>, 19 years ago

Sync to HEAD

git-svn-id: svn://www.freewrt.org/branches/dn-kernel-2.4.33@640 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100755
File size: 311 bytes
Line 
1#!/bin/sh
2
3. /etc/rc.conf
4
5case "$1" in
6 autostart)
7 test x"$openvpn" = x"NO" && exit 0
8 exec $0 start
9 ;;
10 start)
11 [ -f /etc/openvpn/openvpn.conf ] || exit
12 openvpn --daemon --config openvpn.conf --cd /etc/openvpn
13 ;;
14 stop)
15 killall openvpn
16 ;;
17 restart)
18 $0 stop
19 sleep 3
20 $0 start
21 ;;
22esac
23exit $?
Note: See TracBrowser for help on using the repository browser.