File:
[ELWIX - Embedded LightWeight unIX -] /
elwix /
config /
etc /
uboot /
rc.d /
016.defaultroute.stop
Revision
1.2:
download - view:
text,
annotated -
select for diffs -
revision graph
Mon Sep 15 19:06:52 2014 UTC (9 years, 11 months ago) by
misho
Branches:
MAIN
CVS tags:
elwix2_8,
elwix2_7,
elwix2_6,
elwix2_3,
HEAD,
ELWIX2_7,
ELWIX2_6,
ELWIX2_5,
ELWIX2_2p0
elwix 2.2
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>