Changeset 7215


Ignore:
Timestamp:
2007-05-13T23:58:08+02:00 (9 years ago)
Author:
florian
Message:

Do not suppress routes if the router received on renew is the same (#138)

File:
1 edited

Legend:

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

    r6512 r7215  
    2929                broadcast ${broadcast:-+} 
    3030 
    31                 if [ -n "$router" ] ; then 
     31                if [ "$router" != "$(route -n | grep '^0.0.0.0' | grep $interface | awk '{ print $2 }')" ] ; then 
    3232                        echo "deleting routers" 
    3333                        while route del default gw 0.0.0.0 dev $interface >&- 2>&- ; do :; done 
Note: See TracChangeset for help on using the changeset viewer.