Every reboot, lose wireless settings


Forum: Networking
Topic: Every reboot, lose wireless settings
started by: TimAllix

Posted by TimAllix on Aug. 04 2006,06:27
I have DSL booting from Compact Flash, I finally got a PCMCIA wireless card to work (Gave up on SMC2532 with NDISWRAPPER, wasted days on this, bought a Dlink G650, worked out of the box :)

Anyhow, I opened .filetool.lst and added the line:

opt/myiwconfig.sh

... thinking this would save my wireless settings.  I checked the myiwconfig.sh file, and it contained the correct channel and WEP settings.

Then, as per Dillo, I ran the backup button on the DSLpanel, and specified HDC1 (the CF card).  The backup.tar.gz appeared in the /

I rebooted and expected the wireless card to come alive, but it doesn't.

I really don't understand the cheatcodes part of the instructions, possibly this is the missing link.  Can anyone explain this to a dumb newbie?

Posted by clacker on Aug. 04 2006,14:05
TimAllix, a "dumb newbie" you are not if you got your wireless card to work.  "Dumb Newbie" is a state of mind.

You say you have a file called opt/myiwconfig.sh which (by the .sh extension) is a shell script.  When you reboot can you open an xterminal and type /opt/myiwconfig.sh and see if the wireless is set up then?  If it is, then all you need to do is add the line:

/opt/myiwconfig.sh

to the end of the /opt/bootlocal.sh script and save the backup again.  The commands in bootlocal.sh are run when dsl boots up so your script will get run then.  /opt/bootlocal.sh should already be in .filetool.lst.

Posted by TimAllix on Aug. 04 2006,17:24
Thanks Clacker, that was the answer i was seeking.  System boots and card connects right away.

I am still not fully understanding the processes at work, perhaps you can clear things up for me...

When I finally figured out that the myiwconfig.sh file held the necessary settings for the wireless card, I wasn't sure why the settings had been saved in the first place....

Was it because I added the line, /opt/myiwconfig.bs to the .filetools.lst file?  Or were those settings saved the first time I ran a backup from the control console?

Posted by gauss on Aug. 05 2006,03:40
My DSL 3.0.1 is installed on my hard drive and I, too, have problems with the persistence of network settings.

Code Sample
$ /etc/init.d/networking start

will bring up my wireless card correctly, so all the parameters must be stored correctly. But when I boot, "knoppix" insists on running dhcp when the parameters I've stored indicate static IPs. I tried linking the above script into rc3.d with

Code Sample
$ cd /etc/rc3.d
$ ln -s ../init.d/networking ./S03networking

but this doesn't help. Doesn't this get executed as the boot process reaches stage 3?

Posted by roberts on Aug. 05 2006,05:01
Add nodhcp to your lilo or grub to avoid the dhcp request.
Or alternatively, modify the Knoppix boot script...
/etc/init.d/knoppix-autoconfig

Posted by gauss on Aug. 05 2006,22:29
Quote (roberts @ Aug. 05 2006,01:01)
Add nodhcp to your lilo or grub to avoid the dhcp request.

This works. Thanks.

Posted by awdark on Aug. 16 2006,03:35
Can you please tell me which file I should modify so that my Prism2 drivers will keep my settings?

My wifi works wonderfully when I click the control panel, Prism2, enter my stuff and my wep key... but its getting annoying.

btw, its a hard drive install

Posted by gauss on Aug. 16 2006,04:13
Quote (awdark @ Aug. 15 2006,23:35)
Can you please tell me which file I should modify so that my Prism2 drivers will keep my settings?

I believe that when you enter networking information into a DSL config dialog box that the info is stored to a file. When I boot, cardmgr prints out my card's info: WEP, SSID, etc. My problem was that my networking info (IP address, gateway, DNS, etc.) was stored but was not being used since the boot script launched into DHCP rather than using my static IP, etc.

If that is your problem, just edit /boot/grub/menu.lst and add nodhcp to the kernel boot line.

Posted by awdark on Aug. 17 2006,16:50
Im not sure where to check if the settings are saved, but every time I click the Prism2 button, a window with blank boxes pop up so I am assuming it doesn't save anything.

Found it
/opt/myprism2.sh

It has all the information in it even after a reboot.  However, I don't know how to use that as I don't think its an issue with the DHCP and im assuime its an issue reguarding loading the settings...

found this, < http://damnsmalllinux.org/cgi-bin....t=14067 > trying now.

Posted by mot on Sep. 19 2006,02:02
I'm having a similiar situation, except I don't have either a "myprisim2.sh" or a "myiwconfig.sh" in my opt directory.  I can't seem to find where my wireless settings are saved.  I have a netgear wireless card that works well when I go through the "wlcardconfig" in the fluxbox menu, or the wlanconfig in the control panel, but there is nothing saved in /opt.  Am I missing something?
Posted by Wittfella on Sep. 19 2006,11:26
Hello,

Run "Netcardconfig" from the control panel. After that the "myiwconfig.sh" should be in /opt.

Most of the ifconfig settings should be stored in "/etc/network/interfaces".  If you are running a full HD install you can add your wireless settings to that.

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