[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems with the airport



Hi,

I have an Airport Extreme. For 2.6.15 and 16 (but 16 does not have a debian package for Extreme module), I use the following script in /etc/network/interfaces:

auto eth1
iface eth1 inet manual
  post-up /etc/network/eugen

-----------

I use the following script eugen:

ifconfig $IFACE up
iwconfig $IFACE rate 11M

# this is because sometimes iwlist eth1 scan does not return any result
found=0
for i in 1 2 3 4 5 6 7 8; do
    res=`iwlist $IFACE scan`
    echo $res | grep "No scan results"
    if [ $? != 0 ]; then
        found=1
        break
    fi
    sleep 3
done
if [ $found = 0 ]; then
    echo "No wifi network found."
    exit
fi

# wifi network found
echo $res|grep dedu >/dev/null
if [ $? = 0 ]; then
    # home
    echo "Found dedu essid."
    iwconfig $IFACE essid dedu key XXX
else
    echo $res|grep lifcap >/dev/null
    if [ $? = 0 ]; then
        # office
        iwconfig $IFACE essid any key YYY
...

I do know anything about WPA.

HTH,
--
Eugen



Reply to: