![]() ![]() | ![]() |
Initial revision
#!/bin/sh if [ -r /etc/mygate ]; then DEFROUTE=`cat /etc/mygate` DEFZ=`netstat -rnfinet | head -5 | tail -1 | cut -f 1 -d " "` echo -n "Add Default Route ... " if [ X"${DEFZ}" != X"default" ]; then echo "$DEFROUTE" route add default $DEFROUTE else echo "Already Set (DHCP)" fi fi