http://stackoverflow.com/questions/7013137/automating-telnet-session-using-bash-scripts
https://github.com/richb-hanover/OpenWrtScripts