Escolar Documentos
Profissional Documentos
Cultura Documentos
/bin/sh
# syntax
# if run without arguments, will prompt
# if run with arguments, you need
# wireless [essid] [rate] [WEPkey]
# WEPkey can be "none" if you don't want to be prompted
INTERFACE="ath0"
IFCONFIG="/sbin/ifconfig"
IWLIST="/sbin/iwlist"
IWCONFIG="/sbin/iwconfig"
DHCLIENT="/sbin/dhclient"
FIREWALL="/usr/bin/firewall.sh"
# first just bring up the interface
$IFCONFIG $INTERFACE up 2> /dev/null
if [ $? -ne 0 ]
then
echo "Cannot execute: $IFCONFIG $INTERFACE up"
exit
fi