LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   auto logon wifi SUSE10.1 (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/auto-logon-wifi-suse10-1-a-498689/)

beerten 11-04-2006 07:00 PM

auto logon wifi SUSE10.1
 
Hi,

I've got a laptop with SUSE10.1 installed. With ndiswrapper my Linksys WPC54G wificard is installed just fine.
Via YAST ---> /etc/sysconfig-editor ---> system ---> kernel ---> MODULES_LOADED_ON_BOOT I added "ndiswrapper". Ths eliminates manuale startup of the wificard.

The problem is, how can I setup the wificonnection to automaticly connect with my accespoint? As far as i know, I should do something like writing a configfile with the SSID and WEP-settings and so on. And than add the file to a bootload-directory. Or something like this.
No I have to startup the card manualy and manualy enter the WEP-encryption-key, by clicking the taskbar-button which opens a graphical interface. It's called KNetworkManager
When installing the wificard with ndiswrapper, I used a manual that had some instructions on writing such a configfile. But I can't remember or reproduce this manual.

Anyone a solution? Thanks

antanas 11-06-2006 05:11 AM

well you can add the interface as wlano in the ifup. usae module name as ndiswrapper.

Wizzard will prompt you to put in the ESSID for the lan.

Then you can create a batch script with all the manual commands that bring it up: (mine looks like) :

(srcipt name - wlan0)

#!/bin/bash
ifconfig wlan0 192.168.1.66 up
route add default gw 192.168.1.1 wlan0

then make it exacutable and put it into your /etc/init.d/ directory.

then use the command: "chkconfig --level 35 wlan0 on" to set the script to be un at boot time on 3rd and 5th init levels.


All times are GMT -5. The time now is 03:34 PM.