Script for Wlanconfig restore and Kismet?Forum: Networking Topic: Script for Wlanconfig restore and Kismet? started by: Mathes75 Posted by Mathes75 on Feb. 06 2007,22:14
Hi there, I'm facing a problem with my WLAN-configuration. I hope somebody can help.Made a HD-install of DSL 3.2, got my DLINK DWL-G650 v4 to work, installed kismet.dsl (Great work!) via MyDSL and everything is workink fine - until the next reboot. When I reboot my laptop it restores a backup from hda1 but not the WLAN-settings and the installation of Kismet! After booting I run Wlanconfig, doing sudo pump -i ath0 and the card connects with my WLAN. Then I have to reinstall Kismet to use it. Is it possible to store the state of the configured WLAN-card and installed Kismet so that I can use it after booting? The Kismet configuration and the entries in Wlanconfig (/etc/pcmcia/wireless.opts) are stored, but I have to run WLANconfig and the installation after every reboot! I tried to find the /opt/myiwconfig.sh to add a line to the bootlocal.sh but its missing! What am I doing wrong? What did I forget? Thanks, Mathes Edit: Sorry, missing/wrong information. Kismet is an UCI-Extension ... How to reload after boot? Posted by Mathes75 on Feb. 06 2007,23:18
OK, solved one problem: Kismet. I should have used the search more exesive before asking .... Sorry UCI's are not installed, they are kind of mounted. I added "mydsl-load /tmp/kismet-2006-04-R1.uci" to bootlocal.sh - and now i have kismet ready to use right from the start. But the WLAN problem is still unsolved ... Posted by ^thehatsrule^ on Feb. 06 2007,23:39
Posted by Mathes75 on Feb. 08 2007,12:30
Thanks for the yelp - I know that it should be created after running wlanconfig from DSLpanel, but it's not there!!! Can anybody post an example of the script, so that I can modify it for my WLAN? Thet wuld be great! Thanks! Posted by roberts on Feb. 08 2007,14:21
Typically a hard drive installed system changes like that should persist.. However the system by default at boot up is requesting a dynamic IP via a pump -i eth0. But your's is ath0 1. I would add nodhcp to the boot options. 2. I would try adding pump -i ath0 to /opt/bootlocal.sh Posted by Mathes75 on Mar. 10 2007,20:59
OK, after a lot of try-and-error I found a solution for me.I tried to make a script to configure my WLAN-card like the myiwconfig.sh, but it failed to load during bootlocal.sh. Because I use my Dell notebook only with plugged WLAN I added "iwconfig ath0 ...." and "pump -i ...." to the bootlocal.sh and now it works perfect! Changed the torsmo config to monitor my ath0 traffic an now this CPi is my favorite computer!!! Thanks for the help! |