The modprobe line is invalid (no path to /lib/modules/... allowed, see modprobe(8)); thus, modprobe fails everytime. Reproducible: Always Steps to Reproduce: 1. Install cisco-vpnclient-3des-4.0.3-r1 2. Run /etc/init.d/vpnclient Actual Results: --8<-- snip --8<-- [ ~ ] wallace $ /etc/init.d/vpnclient start * Starting Cisco VPN Client: ... modprobe: Can't locate module /lib/modules/2.4.22-gentoo-r3/CiscoVPN/cisco_ipsecFailed to load module cisco_ipsec -->8-- snap -->8-- Expected Results: Clean run of /etc/init.d/vpnclient. [ ~ ] wallace $ emerge --info Portage 2.0.49-r16-gpp7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-gentoo-r3) ================================================================= System uname: 2.4.22-gentoo-r3 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.3.10 ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer -ffast-math -funroll-loops -fforce-addr" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer -ffast-math -funroll-loops -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache digest userpriv usersandbox" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.linux.no/ http://www.ibiblio.org/pub/Linux/distributions/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PKGUSE="( media-libs/smpeg => -gtk )( net-misc/vnc => -java )( media-sound/timidity++ => -gtk )( app-crypt/gnupg => caps -X )( net-www/links => -X )( app-pda/multisync => evo irmc )( media-video/dvdrip => -gnome )( media-gfx/imagemagick => -X )( net-www/mozilla => moznoirc moznomail moznocompose )( media-sound/alsa-driver => oss )( sys-libs/glibc => pic )( games-strategy/dopewars => -ncurses )( media-sound/lame => -gtk )( app-cdr/cdrdao => -gnome )( media-sound/rhythmbox => xine )( app-misc/mc => -X )" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 avi crypt cups encode gif jpeg mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xv zlib berkdb readline tetex java guile X sdl tcpd pam libwww ssl esd imlib oggvorbis gnome gtk motif opengl ldap 3dnow acl acpi alsa -apm -arts bonobo cdr dvd -foomaticdb -gdbm -gpm gtk2 gtkhtml jikes -kde -libg++ maildir -mozilla mpi mmx oav odbc -oss pda -perl -python -qt samba -slang -svga -xmms"
Created attachment 23457 [details, diff] Fix for the stated bug This is a (the) fix for the stated misbehaviour. Note that I also did some prettyprinting, message consistency stuff and a nicer "whoami" test. Please review and commit upstream.
ARGH! Wrong click... please reassign to the correct people. Sorry!
Created attachment 23471 [details] fixed vpnclient file i am truly sorry, but the patch doesn't solve the problem for me. i am running a 2.6 kernel with udev. i don't now if the problem is related to that, because it is actually the modprobe, which doesn't work for me. so i changed the modprobe to insmod and rmmod. now the script is working. i recreated the whole script with your and my changes.
I'll take a look at it when I get a chance.
Fixed in CVS...
the script isn't working in course of the /sbin/insmod -qs ${PC}/${VPNMOD} (line 38). remove the -qs and it will work.
Why would I need to remove the quiet and syslog flags? They work with both modutils and module-init-tools.
root@vapier 0 root # /etc/init.d/vpnclient start * Starting Cisco VPN Client... insmod: can't read '-qs': No such file or directory if i change the syntax to be 'insmod cisco_ipsec -qs' i then get this: insmod: error inserting '/lib/modules/2.6.3-rc2/CiscoVPN/cisco_ipsec': -1 Unknown symbol in module if i remove the '-qs' it works :P
That is very strange. What do you get when you type a insmod --help? On several of my systems it works perfectly, so I am wondering if it is something with the version of insmod. Also, what if you remove the path from the insmod line? I'll change it if it "fixes" the script, but I don't understand why legitimate commandline options are not working, so I would prefer to solve that rather than work around it if possible.
sys-apps/module-init-tools-3.0_pre9 root@vapier 0 root # insmod --help insmod: can't read '--help': No such file or directory root@vapier 0 root # insmod cisco_ipsec -qs insmod: can't read 'cisco_ipsec': No such file or directory
I guess I'll be changing it, then... This just pisses me off, because I *liked* being able to force the module load to be quiet and log via syslog. By the way, sys-apps/module-init-tools-0.9.15_pre4 is what I'm running on, the latest stable x86.
Fixed in CVS