summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/pccard_ether15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether
index b79262312..b8a6c59 100755
--- a/etc/pccard_ether
+++ b/etc/pccard_ether
@@ -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
OpenPOWER on IntegriCloud