Commit 839a2d62 authored by Ryan Jackson's avatar Ryan Jackson

Support classless static routes (RFC 3442)

parent c8827ceb
......@@ -3,7 +3,7 @@
# Start the network....
#
udhcpc_opts="-q"
udhcpc_opts="-q -O staticroutes"
if [ -f /etc/emulab/paths.sh ]; then
. /etc/emulab/paths.sh
......
......@@ -47,6 +47,14 @@ case "$1" in
done
fi
if [ -n "$staticroutes" ] ; then
echo "creating static routes"
echo $staticroutes | while read dest router; do
route add -net $dest gw $router
done
fi
echo -n > $RESOLV_CONF
[ -n "$domain" ] && echo search $domain >> $RESOLV_CONF
for i in $dns ; do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment