Hello I need a perl script (i prefer perl) that can do this:
Step 0. Check if internet connection is alive
– If internet works/is alive abort script.
– If internet is not working continue with steps below.
– My idea of checking if internet is alive is to do a ping to google.com – and see if we get a reply back.
Step 1. If internet is not alive – run “iwconfig”
– And from that command line we know what ethX port exists and if a wlanX port exists.
– It is likely the comput…
