#!/bin/sh
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"

 DR=`route -n | egrep '^0.0.0.0'| grep -v ppp | sed 's/^[^ ]*  *\([^ ]*\) .*/default gw \1/'` ;
 if [ -n "$DR" ] ; then
 route delete $DR
  if [ ! -f "/tmp/oldroute" ] ; then
       echo "route add $DR" > /tmp/oldroute
  fi
 fi
cat /root/spark/etc/resolv.conf > /tmp/resolv.conf
