Question: How to get the network status (online/offline) and attribute it to a variable in shell script?

Answer: 
another one...
for older NICs, the command mii-tool is awesome
I'm going to reccomend `ip` again:

```
status=$(ip -o link show eth0 | awk '{print $9}')

```

(The ninth column is the state of the interface)