I'm using an updated raspbian, but found eth0 is down randomly due to usb problem, not sure for what reason. I wrote this script to check eth0 every minute to up eth0