diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-07-19 21:11:53 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-07-19 21:11:53 +0000 |
commit | 28d46ddfdfd70eb4e4f7955a419caaabeafa13ac (patch) | |
tree | ca76bd2bdd81a45c7cf560c6126649d58caa4627 /net-misc/cisco-vpnclient-3des/files | |
parent | Version bump to fix issues in CPU output for amd64/x86 and also to work aroun... (diff) | |
download | historical-28d46ddfdfd70eb4e4f7955a419caaabeafa13ac.tar.gz historical-28d46ddfdfd70eb4e4f7955a419caaabeafa13ac.tar.bz2 historical-28d46ddfdfd70eb4e4f7955a419caaabeafa13ac.zip |
Moved check for the vpnclient executable and added a sleep 1. Closing bug #141065.
Package-Manager: portage-2.1.1_pre2-r6
Diffstat (limited to 'net-misc/cisco-vpnclient-3des/files')
-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)" |