Sample Wireless Profile
From ArchWiki
Contents |
[edit] Please note that wireless profile support is now provided by netcfg
See here for details.
A wireless profile is a named setup for a given wireless connection. In order to create a profile, you must create a /etc/conf.d/wireless-profiles/<profile name> directory - here we will use the profile named "sample".
[edit] /etc/conf.d/wireless-profiles/<profile-name>
This script is nothing like th current profile example in the network-scripts dir and apparently a separate profile directory is not necessary, just name the config file after your profile.
#! /bin/sh #---- # The following sample contains the bare minimum working wireless # profile. Other options are commented below. Copy this script # and modify for a working profile. #---- INTERFACE="wlan0" # # Interface options (same as in rc.conf) - either dhcp or paramters for ifconfig IFOPTS="dhcp" # IFOPTS="wlan0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255" # # Wireless ESSID (extended network name) ESSID="SAMPLE" # This value is free-form, used for informational scripts # INFO="Sample Wireless Profile" # # Network/Domain ID # NWID="" # # Mode [[Ad-Hoc, Auto, Managed, Master, Repeater, Secondary, Shared]] # MODE="" # # Frequency or Channel of Wireless Radio # FREQ="" # CHANNEL="" # # Signal Sensitivity # SENS="" # # TX/RX Bit Rate # RATE="auto" # # Encryption Key (see `man iwconfig` for extended information # KEY="00000000000000000000000000" # # RTS Threshold # RTS="" # # Fragmentation Threshold # FRAG="" # # Misc Parameters for iwconfig # PARAMS=""
[edit] /etc/conf.d/wireless-profiles/sample/wpa
A wpa_supplicant configuration for this profile <optional>
[edit] /etc/conf.d/wireless-profiles/sample/{connected,disconnected}
These files are scripts to be executed once the interface is connected or disconnected. <optional>
Other files can/will be added as the script evolves.