Changeset 8


Ignore:
Timestamp:
2004-03-28T06:15:26+02:00 (14 years ago)
Author:
mbm
Message:

deal with static routes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/etc/networking.sh

    r7 r8  
    162162configure wifi 
    163163configure wan 
     164 
     165for route in $(nvram_get static_route); do { 
     166      ip=${route%%:*} route=${route#*:} 
     167 netmask=${route%%:*} route=${route#*:} 
     168 gateway=${route%%:*} route=${route#*:} 
     169  metric=${route%%:*} route=${route#*:} 
     170      if=${route%%:*} 
     171  $DEBUG route add -net $ip netmask $netmask gw $gateway metric $metric dev $if 
     172} done 
Note: See TracChangeset for help on using the changeset viewer.