diff options
Diffstat (limited to 'net-misc/cisco-vpnclient-3des/files/vpnclient.rc')
-rw-r--r-- | net-misc/cisco-vpnclient-3des/files/vpnclient.rc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net-misc/cisco-vpnclient-3des/files/vpnclient.rc b/net-misc/cisco-vpnclient-3des/files/vpnclient.rc index 0a1ae4a4c6a1..4344d98f6a2e 100644 --- a/net-misc/cisco-vpnclient-3des/files/vpnclient.rc +++ b/net-misc/cisco-vpnclient-3des/files/vpnclient.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/cisco-vpnclient-3des/files/vpnclient.rc,v 1.6 2004/08/25 00:04:32 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/cisco-vpnclient-3des/files/vpnclient.rc,v 1.7 2006/07/19 21:11:53 wolf31o2 Exp $ opts="start stop status" @@ -75,14 +75,15 @@ stop() { ebegin "Stopping Cisco VPN Client" - if [ -x $VPNCLIENT ]; then - $VPNCLIENT disconnect > /dev/null 2>&1 - fi /sbin/lsmod | grep -q "${VPNMOD}" if [ "$?" != "0" ] ; then eend 1 "Failed: module ${VPNMOD} is not running" return 1 fi + if [ -x $VPNCLIENT ]; then + $VPNCLIENT disconnect > /dev/null 2>&1 + sleep 1 + fi /sbin/ifconfig $VPNDEV down if [ "$?" != "0" ] ; then eend 1 "Failed (ifconfig)" |