Wednesday, June 12, 2013

Showing All nics with link using bash

 # for i in $(cat /proc/net/dev | grep ':' | cut -d ':' -f 1); do echo "Interface : $i" "  $(ethtool $i | grep Link)"; done
Interface : lo          Link detected: yes
Interface : virbr0-nic          Link detected: no
Interface : virbr0      Link detected: no
Interface : em1         Link detected: no
Interface : wlan0       Link detected: yes

Tuesday, June 4, 2013

tf101 usb battery

A while back I got this "Rechargeable Laptop Battery" from a brookstone outlet a few months ago for about 35$. Not bad since its 145.

So here is what I did to it to make it work for my tf101. The pictures are pretty self explanatory