Network Profiles development
From ArchWiki
Contents |
[edit] netcfg v2.1.0 beta 2
[edit] Remove driver specific hacks/quirks
Previously netcfg attempted to make every hardware under the sun happy by using a big range of quirks. I'm fairly sure these quirks were adversely affecting other hardware, so it was impossible to keep everything working right. As drivers were updated, I'm sure some quirks are no longer neccessary but I lack the hardware to check.
Now any driver specific hacks must be enabled via the QUIRKS=() array. This is profile specific. These hacks include:
- prescan - Run "iwlist $INTERFACE scan" before attempting to connect (Some broadcom)
- preessid - Run "iwconfig $INTERFACE essid $ESSID" before attempting to connect. (Some ipw3945 and Intel PRO/Wireless 4965AGN)
- wpaessid - Same as previous, run before starting wpa_supplicant
For example
QUIRKS=(prescan preessid)
If you are having problems with DNS and DHCP, try adding to your profile:
DHCLIENT=no
This will tell netcfg to use dhcpcd instead of dhclient
If you get "Wireless Network Not Found" or "Association Failed" and have tried the above, try:
SCAN=no
[edit] Separate automagic connection code from net-profiles
Automatic connection code has been moved out from profiles into /etc/rc.d/net-auto. They are now configured separately in /etc/rc.conf with the array AUTO_NETWORKS=()
For example
AUTO_NETWORKS=(auto-wireless wlan0)
[edit] Pass arguments to iwconfig before connecting
This one is very popular. Simply:
IWCONFIG="<arguments>"
Where <arguments can be any valid iwconfig argument. The script then runs "iwconfig $INTERFACE $IWCONFIG"
For example, setting bssid/ap mac:
IWCONFIG="ap 12:34:56:78:90:12"
[edit] Git
The netcfg git can be found at projects.archlinux.org. Presently development is occurring in the netcfg2 branch (see bottom of netcfg2 page).