Starting wifi by netconfig (简体中文)
From FrugalWiki
Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어
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.