- Setup a default route (if one is set) when the card is inserted. This

needs to be re-thought, but should work better for 95% of the users.

Stolen from:	rc.network
This commit is contained in:
Nate Williams 1997-11-19 18:51:25 +00:00
parent 93987bc1bd
commit 52f2ef0b82

View File

@ -19,3 +19,18 @@ if [ "x$pccard_ifconfig" != "xNO" ] ; then
ifconfig $interface $pccard_ifconfig $*
fi
fi
if [ "x$defaultrouter" != "xNO" ] ; then
static_routes="default ${static_routes}"
route_default="default ${defaultrouter}"
fi
# Set up any static routes.
if [ "x${static_routes}" != "x" ]; then
# flush beforehand, just in case....
route -n flush
for i in ${static_routes}; do
eval route_args=\$route_${i}
route add ${route_args}
done
fi