Script to bring up an interface in client mode
#!/bin/sh
#
# root@libcrack.so
# 2010
#

DEV=$1
WIFI=

if [ "$DEV" == "" ]; then
    echo
    echo "Uso: $0 <device>"
    echo
    exit
fi

if [ "$DEV" == "ETH02" ]; then WIFI=wifi0; fi
if [ "$DEV" == "ETH03" ]; then WIFI=wifi1; fi

echo "Destruyendo $DEV"
wlanconfig $DEV destroy 
echo "Creando $DEV"
wlanconfig $DEV create wlandev $WIFI wlanmode sta

exit 0
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License