Annotation of elwix/config/etc/uboot/rc.d/016.defaultroute.stop, revision 1.1.2.2

1.1.2.1   misho       1: #!/bin/sh
                      2: 
                      3: if [ -r /etc/mygate ]; then
1.1.2.2 ! misho       4:        DEFROUTE=""
1.1.2.1   misho       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
1.1.2.2 ! misho       9:                echo "${DEFROUTE:=`cat /etc/mygate`}"
        !            10:                route add default ${DEFROUTE:=`cat /etc/mygate`}
1.1.2.1   misho      11:        else
                     12:                echo "Already Set (DHCP)"
                     13:        fi
                     14: fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>