Changeset 2914


Ignore:
Timestamp:
2006-01-11T17:32:33+01:00 (12 years ago)
Author:
florian
Message:

Interface was hardcoded, (cut/paste from the testing openwrt machine)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/base-files/default/usr/share/udhcpc/default.script

    r2913 r2914  
    2828                if [ -n "$router" ] ; then 
    2929 
    30                         if [ "$router" != "$(route -n | grep '^0.0.0.0' | grep vlan1 | awk '{ print $2 }')" ] ; then 
     30                        if [ "$router" != "$(route -n | grep '^0.0.0.0' | grep $interface | awk '{ print $2 }')" ] ; then 
    3131                                echo "deleting routers" 
    3232                                while route del default gw 0.0.0.0 dev $interface ; do :; done                           
Note: See TracChangeset for help on using the changeset viewer.