View Single Post
Old 01-28-2008, 06:46 AM   #44
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
"/usr/bin/wired.sh" and "/usr/bin/wireless.sh" are two useful script to manage internet connection. The following is the usage:

Quote:
wiredUsage()
{
echo "Usage:"
echo " $0 stop"
echo " $0 start [dhcp]"
echo " $0 start static <ip-address> <netmask> <broadcast-addr> <gateway-addr> <nameserver-addr>"
echo " $0 mac"
echo "Note: NFS safe"
exit 1
}
Quote:
wirelessUsage()
{
echo "Usage:"
echo " $0 stop"
echo " $0 start <ssid> [enc <wepkey> | wpa <psk>]"
echo " $0 scan [<ssid>]"
echo "Note: always dhcp"
exit 1
}
for wap, the <psk> is the plain phrase you set, such as "password", not encrypted key.
ericshliao is offline   Reply With Quote