Changeset 13714


Ignore:
Timestamp:
2008-12-22T03:21:25+01:00 (7 years ago)
Author:
jow
Message:

allow ipv4 routes without gateway in configuration

File:
1 edited

Legend:

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

    r13419 r13714  
    2828        dest="${dest:--host "$target"}" 
    2929         
    30         /sbin/route add $dest gw "$gateway" ${dev:+dev "$dev"} ${metric:+ metric "$metric"} 
     30        /sbin/route add $dest ${gateway:+gw "$gateway"} \ 
     31                ${dev:+dev "$dev"} ${metric:+ metric "$metric"} 
    3132} 
    3233 
     
    5556        } 
    5657 
    57         /sbin/route -A inet6 add $target ${gateway:+gw "$gateway"} ${dev:+dev "$dev"} ${metric:+ metric "$metric"} 
     58        /sbin/route -A inet6 add $target ${gateway:+gw "$gateway"} \ 
     59                ${dev:+dev "$dev"} ${metric:+ metric "$metric"} 
    5860} 
    5961 
Note: See TracChangeset for help on using the changeset viewer.