Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/examples/udhcp/sample.renew

    r2725 r3621  
    2323fi
    2424
    25 echo -n > $RESOLV_CONF
    26 [ -n "$domain" ] && echo domain $domain >> $RESOLV_CONF
    27 for i in $dns
    28 do
    29     echo adding dns $i
    30     echo nameserver $i >> $RESOLV_CONF
    31 done
     25# Only replace resolv.conf is we have at least one DNS server
     26if [ -n "$dns" ]
     27then
     28    echo -n > $RESOLV_CONF
     29    [ -n "$domain" ] && echo domain $domain >> $RESOLV_CONF
     30    for i in $dns
     31    do
     32        echo adding dns $i
     33        echo nameserver $i >> $RESOLV_CONF
     34    done
     35fi
Note: See TracChangeset for help on using the changeset viewer.