if [ -f /var/run/$interface.route-fix -a -f /var/run/$interface.conf ] then # get configuration from file, format: # local remote (network )* conf=`cat /var/run/$interface.conf` set $conf shift 2 # remove first two entries # setup routes again while [ "$1" ] do ip route add $1 dev $interface shift done fi