]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Up wireless device before setting any WLAN parameters support.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 5 Dec 2005 00:33:20 +0000 (00:33 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 5 Dec 2005 00:33:20 +0000 (00:33 +0000)
svn-id: @6598

sysconfig/interfaces/ifcfg-description
sysconfig/network-scripts/ifup

index fc3976abdc82b60e434da0532d9c37048930303d..ac2c8eee6d288b24ad20f6a8b0caa6fed2234909 100644 (file)
@@ -84,6 +84,8 @@ if    DEVICE=eth* ; then
        [ MACADDR=<hw addres> ]
 
        if      DEVICE=wireless interface (man iwconfig(8))
+               WLAN_UPEARLY=<yes>|<no> Up device before setting any WLAN parameters
+                                       (needed for some drivers)
                WLAN_ESSID=<ESSID or Network Name (Domain ID)>|any|off
                WLAN_NWID=<Network ID (Domain ID)>|off
                WLAN_FREQ=<frequency> (2.422G)
index dd6a28399f3621702d62d3df403bfac3aae5a0ad..dbe58a243465216b6e95347bb9a2e9e4da710161 100755 (executable)
@@ -106,6 +106,7 @@ if is_yes "${IPV6_NETWORKING}" && is_yes "${IPV6_DISABLE_AUTOCONF}"; then
 fi
 
 if is_wireless_device "${DEVICE}"; then
+       is_yes "${WLAN_UPEARLY}" && ip link set ${DEVICE} up
        wireless_param ${DEVICE}
        if is_yes "${WLAN_WPA}"; then
                /usr/sbin/wpa_supplicant -B -w -D ${WLAN_WPA_DRIVER} -c ${WLAN_WPA_CONFIG} -i ${DEVICE} ${WLAN_WPA_OPTIONS} -P "/var/run/wpa_supplicant-${DEVICE}.pid"
This page took 0.052882 seconds and 4 git commands to generate.