Annotation of elwix/config/etc/uboot/rc.d/016.defaultroute.stop, revision 1.2
1.2 ! misho 1: #!/bin/sh
! 2:
! 3: if [ -r /etc/mygate ]; then
! 4: DEFROUTE=""
! 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:=`cat /etc/mygate`}"
! 10: route add default ${DEFROUTE:=`cat /etc/mygate`}
! 11: else
! 12: echo "Already Set (DHCP)"
! 13: fi
! 14: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>