#!/bin/bash
echo 'Hostname
IP
SubnetMask
Gateway
DNSServers
MACaddress
Enabled
Connected'
if iwconfig $1 > /dev/null 2>&1
then
echo 'ESSID
Mode
Encryption key
AuthMode
EncryType
WPAPSK'
fi
