#!/bin/bash
echo 'Hostname
IP
SubnetMask
Gateway
DNSServers
MACaddress
DHSCP_mode'
if iwconfig $1 > /dev/null 2>&1
then
echo 'ESSID
BSSID
Mode
encryption
Encryption key
AuthMode
EncryType
WPAPSK
power
freq
channel
nick
rate
rts
frag
enc'
fi