Changeset 17325
- Timestamp:
- Jul 24, 2012, 5:10:05 PM (14 years ago)
- Location:
- ipk/source.sh4/titanswapnetwork_openvpn/var/swap
- Files:
-
- 2 edited
-
etc/openvpn.sh (modified) (4 diffs)
-
lib/modules/tun.ko (modified) ( previous)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titanswapnetwork_openvpn/var/swap/etc/openvpn.sh
r14533 r17325 1 1 #!/bin/sh -e 2 2 # 3 # Original version by Robert Leslie - Modified by Alex (restart/start/stop check for tun module) 4 3 5 4 6 test $DEBIAN_SCRIPT_DEBUG && set -v -x … … 10 12 11 13 start_vpn () { 12 if ( [ ! -c /dev/net/tun ] ) then14 if ( [ ! -c /dev/net/tun ] ) then 13 15 if ( [ ! -d /dev/net ] ) then 14 16 mkdir -m 755 /dev/net … … 19 21 insmod /var/swap/lib/modules/tun.ko 20 22 fi 21 /lib/ld-2.6.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" 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" 24 27 } 25 28 stop_vpn () { … … 105 108 106 109 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)