genconfig: Handle "-r 0" to disable extra routes

* Disable extra routes for minimal VPNs.
This commit is contained in:
Kyle Manna 2014-07-06 10:52:39 -07:00
parent f1e85c959e
commit e933fbe923

View File

@ -157,6 +157,8 @@ EOF
# Append Routes
for i in ${OVPN_ROUTES[@]}; do
# If user passed "0" skip this, assume no extra routes
[ "$i" = "0" ] && break;
echo route $(getroute $i) >> "$conf"
done