Frugalware - Tool wificonfig "zerstört" Konfigurationsdatei

Logo FrugalwareMit dem Tool "wificonfig" kann man eine WLAN Karte konfigurieren.
Doch ist bei der Verwendung von wificonfig Vorsicht geboten, weil die existierende Konfigurationsdatei "/etc/sysconfig/wireless" einfach überschrieben wird.

Eigentlich nicht weiter schlimm wenn man die WLAN Karte erstmalig konfiguriert. Sobald man aber in der Konfigurationsdatei /etc/sysconfig/wireless Eigenes geschrieben hat kann man das Tool wificonfig nicht verwenden.

Beispiel einer /etc/sysconfig/wireless Änderung dahingehend, dass man mit verschiedenen WLAN Karten hantieren kann.

# /etc/sysconfig/wireless
# Wireless LAN adapter configuration
#

# Note : you don't need to fill all parameters, leave them blank, in most
# cases the driver will initialise itself with sane defaults values or
# automatically figure out the value... And no drivers do support all
# possible settings...

case "$HWADDR" in
# DLINK G520
'00:22:82:EA:05:84')
INFO="WLAN client"
# ESSID (extended network name) : My Network, any
ESSID="MYESSID"
# NWID/Domain (cell identifier) : 89AB, 100, off
NWID=""
# Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
MODE=""
# Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
FREQ=""
CHANNEL="6"
# Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
SENS=""
# Bit rate : auto, 1M, 11M
RATE="auto"
# Encryption key : 4567-89AB-CD, s:password
KEY="s:meingeheimkey"
# RTS threshold : off, 500
RTS=""
# Fragmentation threshold : off, 1000
FRAG=""
# Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
IWCONFIG=""
# iwspy parameters : + 01:23:45:67:89:AB
IWSPY=""
# iwpriv parameters : set_port 2, set_histo 50 60
IWPRIV=""
;;
# blank sample
*)
INFO=""
# ESSID (extended network name) : My Network, any
ESSID=""
# NWID/Domain (cell identifier) : 89AB, 100, off
NWID=""
# Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
MODE=""
# Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
FREQ=""
CHANNEL=""
# Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
SENS=""
# Bit rate : auto, 1M, 11M
RATE="auto"
# Encryption key : 4567-89AB-CD, s:password
KEY=""
# RTS threshold : off, 500
RTS=""
# Fragmentation threshold : off, 1000
FRAG=""
# Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
IWCONFIG=""
# iwspy parameters : + 01:23:45:67:89:AB
IWSPY=""
# iwpriv parameters : set_port 2, set_histo 50 60
IWPRIV=""
esac

Sinnvoll bei einem Notebook, um mit verschiedenen WLAN Karten oder WLAN Sticks zu hantieren. Je nach den in Frage kommenden Karten/Sticks kann man sich die /etc/sysconfig/wireless erweitern.

Zumindest ist es sehr sinnvoll, sich von dieser Konfigurationsdatei ein Backup anzulegen.

Powered by Drupal. Created with ZenWalk.