Ignore:
Timestamp:
2010-07-02T05:09:04+02:00 (6 years ago)
Author:
craigc
Message:

[packages] multiwan: Reverted back from using LAN as default route in main routing table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/multiwan/files/usr/bin/multiwan

    r21974 r22043  
    733733local ifname 
    734734local ipaddr 
    735 local lanip 
    736735local i 
    737736 
     
    758757if [ "$gateway" != "x" -a "$ipaddr" != "x" -a "$ifname" != "x" ]; then 
    759758ip route add default via $gateway table $(expr $i + 170) src $ipaddr proto static 
    760 ip route del default > /dev/null 2>&1 
    761  
    762    if [ ! -z $lan_if ]; then 
    763       lanip=`uci -q -P /var/state get network.${lan_if}.ipaddr` 
    764    else 
    765       lanip=`uci -q -P /var/state get network.lan.ipaddr` 
    766    fi 
    767  
    768 ip route add default via $lanip > /dev/null 2>&1 
     759route add default gw $gateway > /dev/null 2>&1 
    769760fi 
    770761done 
     
    10651056config_load "multiwan" 
    10661057config_get default_route    config default_route 
    1067 config_get lan_if           config lan_if 
    10681058config_get debug            config debug  
    10691059 
Note: See TracChangeset for help on using the changeset viewer.