Package: linux-wlan-ng Version: 0.2.4+svn20060808-2 Severity: important Tags: patch
Configuring the wlan0 device in the Networking applet of gnome-system-tools sets the IF_WIRELESS_KEY variable. However, linux-wlan-ng needs the IF_WLAN_NG_KEY0 variable set. This little patch takes care of the translation. --- linux-wlan-ng-pre-up.orig 2006-08-22 13:36:33.000000000 +0200 +++ linux-wlan-ng-pre-up 2006-09-04 23:17:24.000000000 +0200 @@ -35,6 +35,16 @@ } trap cleanup 0 +# Translate some variable names from wireless-tools to make +# linux-wlan-ng more compatible with e.g. gnome-system-tools +# The new variables are only set if previously unset +: ${IF_WLAN_NG_KEY0:=$IF_WIRELESS_KEY} +if [ -n "$IF_WIRELESS_KEY" ] +then + : ${IF_WIRELESS_ENC:=on} +fi +# End of translating hacks + if [ -z "$IF_WIRELESS_MODE" ]; then IF_WIRELESS_MODE="ad_hoc" fi -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16-2-486 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages linux-wlan-ng depends on: ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries ii udev 0.093-1 /dev/ and hotplug management daemo ii wireless-tools 28-1 Tools for manipulating Linux Wirel Versions of packages linux-wlan-ng recommends: pn linux-wlan-ng-doc <none> (no description available) -- no debconf information
--- linux-wlan-ng-pre-up.orig 2006-08-22 13:36:33.000000000 +0200 +++ linux-wlan-ng-pre-up 2006-09-04 23:17:24.000000000 +0200 @@ -35,6 +35,16 @@ } trap cleanup 0 +# Translate some variable names from wireless-tools to make +# linux-wlan-ng more compatible with e.g. gnome-system-tools +# The new variables are only set if previously unset +: ${IF_WLAN_NG_KEY0:=$IF_WIRELESS_KEY} +if [ -n "$IF_WIRELESS_KEY" ] +then + : ${IF_WIRELESS_ENC:=on} +fi +# End of translating hacks + if [ -z "$IF_WIRELESS_MODE" ]; then IF_WIRELESS_MODE="ad_hoc" fi