News | About | Get Frugalware | Packages | Documentation | Discussion Forums | Bug Tracker | Wiki | Community | Development

Starting wifi by netconfig

From FrugalWiki

Jump to: navigation, search


Warning

This howto now has been moved to the official documentation. If you modify this page, please send a patch to keep the official text in sync. Thanks.

The howto

This howto describes how i set up my wifi to start by netconfig. I have a HP nx6110 notebook, so this howto made for this, but should work on other notebooks, depending on what kind of wifi card you have and which driver do you use.

I use the native bcm43xx driver and this driver has some interesting issues: i have to enable the interface with ifconfig eth1 up, because the button does not work properly. Another issue that if the interface is up and i push the button, the blue led still lights, but the interface is in hangup. So i had to do interesting things in netconfig's config file.

I created a file called wifi in /etc/sysconfig/network/ directory. Here's the content:

[options]
dns = 192.168.2.100
[eth1]
pre_up = ifconfig eth1 up
pre_up = wpa_supplicant -Dwext -c /etc/wpa_supplicant.conf -w -B
options = dhcp
post_down = killall wpa_supplicant
post_down = ifconfig eth1 down

As i said, i have to enable the wifi with ifconfig eth1 up before using wpa_supplicant of any other things. But if i enable it in pre_up, the interface doesn't go down normally, so i had to disable it with ifconfig eth1 down in post_down. Also i had to kill wpa_supplicant _before_ disabling eth1 interface, because it will not be stopped automaticaly.

Personal tools
Namespaces
Variants
Actions