[Ndiswrapper-general] ndiswrapper -l error (sequel :-)
Status: Beta
Brought to you by:
pgiri
From: John S. <jo...@st...> - 2004-07-22 13:36:42
|
I checked the archive and the question's been asked before: http://sourceforge.net/mailarchive/message.php?msg_id=8731641 > From: Pontus Fuchs: <pontus@ta...> > Re: ndiswrapper -l = error > 2004-06-16 02:44 > > On Wed, 2004-06-16 at 11:26, Jähne,_Marcel wrote: > > Hello list, > > > > i use ndiswrapper 0.8 on a Mandrake 9.2 . > > If i install a driver by ndiswrapper -i <driver> it seems all is ok. > > But if i type the command "ndiswrapper -l" to see if the driver was > > installed, it brings following error : > > > > Can"t use string ("") as an ARRAY ref while "strict refs" in use at > > /usr/sbin/ndiswrapper line 324, <LS2> line 1. > > > > What`s that ? > > You don"t have the command "lspci" installed. I have fixed this error by > displaying a more meaningful error message in the latest cvs version. but at the point the error occurs the code is trying to parse an `ls -l` not an `lspci` (though Pontius' inference that I don't have lspci installed on my machine is correct (ndiswrapper 0.8 for Ralink 2500 on Mdk 10.0) open(LS2, "ls -1 $confdir/$driver|"); my $ret = ""; while(my $device = <LS2>) { chomp($device); my $d = $device; $d =~ s/.conf//; if($d =~ /(.{4}):(.{4}):(.{4}):(.{4})/) { for(my $i = 0; $$cards[$i]; $i++) (My Perl knowledge has been swapped out too long - can anybody upclue me on what $$foo[$bar] should do?) On my system `ls -l` produces a list like: total 192 -rw-r--r-- 1 root root 549 Jul 21 17:21 1814:0201:1462:6833.conf -rw-r--r-- 1 root root 549 Jul 21 17:21 1814:0201:1462:6834.conf -rw-r--r-- 1 root root 549 Jul 21 17:21 1814:0201:1462:6835.conf -rw-r--r-- 1 root root 549 Jul 21 17:21 1814:0201:16EF:9220.conf -rw-r--r-- 1 root root 549 Jul 21 17:21 1814:0201:16EF:9230.conf -rw-r--r-- 1 root root 549 Jul 21 17:21 1814:0201:1814:2560.conf .... lrwxrwxrwx 1 root root 48 Jul 21 17:21 1814:0201.conf -> /etc/ndiswrapper/rt2500/1814:0201:1814:2560.conf -r-------- 1 root root 37456 Jul 21 17:21 rt2500.inf -rw-r--r-- 1 root root 105216 Jul 21 17:21 rt2500.sys Another slightly peripheral Q: what is lspci and can/should (and where can) I get it for my system? tia -- John Stumbles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |