bash script for automating the connection to networks (lan/wireless) and management there of