rc.d-script for archlinux to simplify connecting to wireless networks
A script to automate connecting your beloved archlaptop to wireless networks, it even allows you to prioritize certain networks above others.
- clone the repo
- symlink
wirelessinto/etc/rc.dusingln -s - make sure
wirelessis executable usingchmod +x - create a new file called
/etc/essidsand list the essids of your networks there in descending priority, eg.
homewifi
eduroam
Work Wireless
#comment lines with #
#coffee cafe - run the
addessidscript to be greeted with an interactive way to add a network to/etc/essids/and/etc/wpa_supplicant.confor add your authentication-details manually to/etc/wpa_supplicant.conf, see https://wiki.archlinux.org/index.php/WPA_supplicant for instructions - open
rc.confwith your favorite editor, egsudo vim /etc/rc.conf - Paste this somewhere in the file, preferably below the
NETWORKS-section
# Wireless setup
# Wireless interface, (default wlan0)
WIRELESS_INTERFACE=wlan0
# List of essids to recognise, in descending priority order (default /etc/essids)
ESSID_LIST=/etc/essids
# wpa_supplicant configuration file, (default /etc/wpa_supplicant.conf)
WPA_SUPPLICANT_CONF=/etc/wpa_supplicant.conf
# Kernel module to insert and remove (optional)
WIRELESS_MODULE=iwlagn - change the above variables to conform to your system
- test it by running
sudo rc.d start wireless - add
@wirelessto theDAEMONSarray inrc.confto autoconnect to a known network in range upon boot
- WPA/WPA2 is supported
- Open networks are supported
- WEP is not supported (yet?)
- DHCP is supported
- static network settings are not supported yet
- load/unload driver-modules for wifi-chip is supported, useful when dealing with annoying wifi-chips such as certain broadcom models
- Eduroam works great
- more things that i forgot