"/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.