updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / carletonvpn-linux / vpnclient_init.patch
blob68ae911e53f580c619ee79f2f62054e87417c45a
1 --- vpnclient_init.orig 2011-09-20 15:22:52.901415716 -0400
2 +++ vpnclient_init 2011-09-20 15:28:15.013003963 -0400
3 @@ -16,14 +16,7 @@
4 VPNCLIENT="/opt/cisco-vpnclient/bin/vpnclient"
5 VPNDEV="cipsec0"
6 VPNMOD=cisco_ipsec
7 -case `uname -r` in
8 -2.[56].*)
9 - VPNMOD_FILE="${VPNMOD}.ko"
10 - ;;
11 -*)
12 - VPNMOD_FILE="$VPNMOD"
13 - ;;
14 -esac
15 +VPNMOD_FILE="${VPNMOD}.ko"
17 WHOAMI=`id | sed -e 's/(.*//'`
19 @@ -35,7 +28,7 @@
20 echo "Failed (super user access required)"
21 exit 1
23 - /sbin/lsmod | grep -q "${VPNMOD}"
24 + /bin/lsmod | grep -q "${VPNMOD}"
25 if [ "$?" = "0" ] ; then
26 echo "module ${VPNMOD} is already running. Use restart instead."
27 exit 1
28 @@ -82,9 +75,6 @@
32 - echo "Failed (unsupported Linux version)"
33 - /sbin/rmmod ${VPNMOD}
34 - exit 1
36 esac
38 @@ -98,7 +88,7 @@
40 killall cvpnd > /dev/null 2>&1
42 - /sbin/lsmod | grep -q "${VPNMOD}"
43 + /bin/lsmod | grep -q "${VPNMOD}"
44 if [ "$?" != "0" ] ; then
45 echo "module ${VPNMOD} is not running."
46 exit 1
47 @@ -116,8 +106,8 @@
48 echo "Done"
50 status)
51 - /sbin/lsmod | egrep 'Module'
52 - /sbin/lsmod | egrep "${VPNMOD}"
53 + /bin/lsmod | egrep 'Module'
54 + /bin/lsmod | egrep "${VPNMOD}"
55 if [ "$?" != "0" ] ; then
56 echo
57 echo "Status Failed (lsmod ${VPNMOD}) - The VPN module is not loaded."