Changeset 15273


Ignore:
Timestamp:
2009-04-19T18:54:16+02:00 (9 years ago)
Author:
jow
Message:

Merge r15272 to 8.09

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/8.09/package/base-files/files/etc/hotplug.d/iface/10-routes

    r15220 r15273  
    2323                config_get gateway "$interface" gateway 
    2424        } 
     25 
     26        # handle "0.0.0.0" and "interface" as "no gateway given" 
     27        # to allow defining gateway-less routes while still 
     28        # keeping the possibility to have static routes with a 
     29        # proper gateway on interfaces with dynamic ips  
     30        [ "$gateway" = "0.0.0.0" -o \ 
     31                "$gateway" = "interface" ] && gateway="" 
    2532 
    2633        dest="${netmask:+-net "$target" netmask "$netmask"}" 
Note: See TracChangeset for help on using the changeset viewer.