Return to 016.defaultroute.stop CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / uboot / rc.d |
1.1.2.1 ! misho 1: #!/bin/sh ! 2: ! 3: if [ -r /etc/mygate ]; then ! 4: DEFROUTE=`cat /etc/mygate` ! 5: DEFZ=`netstat -rnfinet | head -5 | tail -1 | cut -f 1 -d " "` ! 6: ! 7: echo -n "Add Default Route ... " ! 8: if [ X"${DEFZ}" != X"default" ]; then ! 9: echo "$DEFROUTE" ! 10: route add default $DEFROUTE ! 11: else ! 12: echo "Already Set (DHCP)" ! 13: fi ! 14: fi