Changeset 17329
- Timestamp:
- Jul 24, 2012, 6:13:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titanswapnetwork_openvpn/var/swap/etc/openvpn.sh
r17325 r17329 1 1 #!/bin/sh -e 2 2 # 3 # Original version by Robert Leslie - Modified by Alex (restart/start/stop check for tun module)4 5 3 6 4 test $DEBIAN_SCRIPT_DEBUG && set -v -x … … 12 10 13 11 start_vpn () { 14 if ( [ ! -c /dev/net/tun ] ) then12 if ( [ ! -c /dev/net/tun ] ) then 15 13 if ( [ ! -d /dev/net ] ) then 16 14 mkdir -m 755 /dev/net … … 21 19 insmod /var/swap/lib/modules/tun.ko 22 20 fi 23 modprobe tun >/dev/null 2>&1 || true 24 $DAEMON --daemon --writepid /var/run/openvpn.$NAME.pid \ 25 --config $CONFIG_DIR/$NAME.conf --cd $CONFIG_DIR || echo -n " FAILED->" 26 echo -n " $NAME" 21 /lib/ld-2.10.1.so --library-path /var/swap/lib $DAEMON --daemon --writepid /var/run/openvpn.$NAME.pid \ 22 --config $CONFIG_DIR/$NAME.conf --cd $CONFIG_DIR || echo -n " FAILED->" 23 echo -n " $NAME" 27 24 } 28 25 stop_vpn () { … … 108 105 109 106 exit 0 107 108 # vim:set ai et sts=2 sw=2 tw=0:
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)