lamers questionForum: Networking Topic: lamers question started by: Matoxxx Posted by Matoxxx on Dec. 30 2005,13:01
Hello i new in sphere of unix, selfstudiing, bbut i have pproblems with saving my netcard config. and wlanconfig for prism2 Harris-Intersil PCI card. It is working fine with no issues, but on every boot i loose my config settings, and its annoying to do it again and again. i tryed to backup on usb drive whole ramdisk/home/var/ directory where i found netconfig file, but for no use.. any ideas thanks
Posted by Matoxxx on Dec. 30 2005,13:15
adding some info. i need to save my static ip and wireless config
Posted by Matoxxx on Dec. 30 2005,15:15
static ip saved, but cant do nothing about saving wlan config. please help
Posted by thylacine222 on Dec. 30 2005,15:23
If I understand you correctly, what you need to do is make a shell script. What you do to make a shell script is:#/bin/sh (Enter in everything you do to start up your wireless network here) And save this. Save it in a place you will remember it. And once you have saved this, run "chmod +x (Filename of shell script) DSL should have a file called /etc/rc.local or /etc/rc.d/rc.local or /etc/init.d/rc.local. What you have to do is put the location of the shell script you have made underneath everything in this file. Once you have done this, it should be saved onto your USB drive, unless I have messed up grossly and USB DSL is only read only. Rc.local starts up automatically after the startup procedure, but before login. This hopefully is what you wanted. If rc.local does not exist, there are some more files I can list for you if you want. Posted by doobit on Dec. 30 2005,15:28
Most of the info is already save in scripts in the /opt directory. One is called myiwconfig.sh for example. To make them persistant you add the path to those scripts to the /opt/bootlocal.sh script so they are loaded at boot time. You can also add them to a list called .filetool.lst that is made visible in /home/dsl when you click the "H" in the upper left corner of EmelFM. Or just select the script and click the filetool.lst button in EmelFM. There have been some changes in DSL versions after 1.5 so do a search for more info on those scripts.
Posted by Matoxxx on Jan. 03 2006,11:35
The line #/bin/sh is a bash command< cause it isnt workin, or shoud i edit /bin/sh file and put all the info in it.And whitch form should have this info. Like in wlanconfig scrript as ESSID xyzNWID xy:zx: ...ect. |