[package] broadcom-wl: check iface pid file when invoking nas, fixes starting nas...
[openwrt.git] / package / pptp / files / pptp.sh
index 5151f72..b5a5c06 100644 (file)
@@ -26,7 +26,7 @@ setup_interface_pptp() {
        setup_interface "$device" "$config" "${ipproto:-dhcp}"
        local gw="$(find_gw)"
        [ -n "$gw" ] && {
-               route delete "$server" 2>/dev/null >/dev/null
+               [ "$gw" != 0.0.0.0 ] && route delete "$server" 2>/dev/null >/dev/null
                route add "$server" gw "$gw"
        }
 
This page took 0.022182 seconds and 4 git commands to generate.