diff --git a/Shorewall/compiler b/Shorewall/compiler index 30ee2f9b4..ff9705888 100755 --- a/Shorewall/compiler +++ b/Shorewall/compiler @@ -1166,10 +1166,12 @@ __EOF__ else save_command "DEFAULT_ROUTE=\"nexthop via $gateway dev $interface weight $1\"" fi - elif [ "x$gateway" = xdetect ] ; then - save_command "DEFAULT_ROUTE=\"\$DEFAULT_ROUTE nexthop via \$gateway dev $interface weight $1\"" else - save_command "DEFAULT_ROUTE=\"\$DEFAULT_ROUTE nexthop via $gateway dev $interface weight $1\"" + if [ "x$gateway" = xdetect ] ; then + save_command "DEFAULT_ROUTE=\"\$DEFAULT_ROUTE nexthop via \$gateway dev $interface weight $1\"" + else + save_command "DEFAULT_ROUTE=\"\$DEFAULT_ROUTE nexthop via $gateway dev $interface weight $1\"" + fi fi }