scripting  ndiswrapper and netcardconfig


Forum: Networking
Topic: scripting  ndiswrapper and netcardconfig
started by: UndCon

Posted by UndCon on Aug. 02 2005,20:41
I need some help with ndiswrapper and netcardconfig

As it is at the moment i have to manually run ndiswrapper and netcardconfig after every reboot - not very userfriendly (read wife friendly)

/opt/realtek/wg311t113.inf

so i use ndiswrapper in DSL panel...

can i add this to bootlocal.sh ??

ndiswrapper -i /opt/realtek/wg311t113.inf

when wlan is up i want netcardconfig for wlan0 to use dhcp

can i add that too ??

best regards...UndCon - typing on a diskless DSLclient

Posted by SleepWalkerX on Aug. 03 2005,06:09
if you use the ndiswrapper from the dsl panel it automatically adds a startup script.  i think its stored in /opt/myndis.sh.
Posted by UndCon on Aug. 03 2005,07:47
i noticed that file, but after a reboot there is no hardware detected...myndis is still there...
with: ndiswrapper -l i get nothing...

after i use ndiswrapper from DLS-panel i get "wg311t13 hardware detected"

then i can use netcardconfig to assign wlan0 to dhcp and im connected right away...

but the file/script myndis.sh in OPT folder is obviously not enough

(fresh backup also created just in case it would help...)


BTW - thx for your input

Posted by ke4nt1 on Aug. 03 2005,12:09
Add the command /opt/myndis.sh to your /opt/bootlocal.sh file,
so it is run at every bootup.

73
ke4nt

Posted by UndCon on Aug. 03 2005,14:26
thx ke4nt1 - i just found that out by trial and error...

so now i need netcardconfig to be initiated after myndis.sh is finished


SOLVED!

just added this to bootlocal.sh:

ifconfig wlan0 ip XXX.XXX.XXX.XXX
route add default gw XXX.XXX.XXX.XXX
echo nameserver XXX.XXX.XXX.XXX > /etc/resolv.conf
echo nameserver XXX.XXX.XXX.XXX >> /etc/resolv.conf

now i have a minor issue left...
during boot i get an error after loading keymaps...

Posted by UndCon on Aug. 04 2005,11:47


here is the error-line underlined
(sorry for blurred pic)

not that it affects performance - it all works now...but its annoying

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.