mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
- 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:
parent
93987bc1bd
commit
52f2ef0b82
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31297
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user