script for autorestoring linux interfaces