Skip to content
This repository was archived by the owner on Jan 1, 2021. It is now read-only.

fix busy box dhcp bug which will result in an empty /etc/resolv.conf - #197

Merged
steeve merged 1 commit into
boot2docker:masterfrom
aheissenberger:fix/pull/fix-busybox-dhcp-bug
Feb 20, 2014
Merged

steeve merged 1 commit into
boot2docker:masterfrom
aheissenberger:fix/pull/fix-busybox-dhcp-bug

Conversation

@aheissenberger

Copy link
Copy Markdown
Contributor

bug in the configuration of busy box setting the /etc/resolv.conf to an empty value if there is no name server data coming from the DHCP Server for a second network interface #93 .

Please check if your tiny core linux already includes this fix:
https://bugs.busybox.net/show_bug.cgi?id=6788

/usr/share/udhcpc/default.script
@@ -28,7 +28,9 @@ case "$1" in
             done
         fi

-        echo -n > $RESOLV_CONF
+        if [ -n "$dns" ] ; then
+            echo -n > $RESOLV_CONF
+        fi
         [ -n "$domain" ] && echo search $domain >> $RESOLV_CONF
         for i in $dns ; do
             echo adding dns $i

@steeve

steeve commented Feb 18, 2014

Copy link
Copy Markdown
Contributor

LGTM

steeve added a commit that referenced this pull request Feb 20, 2014
…-bug

fix busy box dhcp bug which will result in an empty /etc/resolv.conf
@steeve
steeve merged commit 69b9f38 into boot2docker:master Feb 20, 2014
@aheissenberger
aheissenberger deleted the fix/pull/fix-busybox-dhcp-bug branch February 21, 2014 09:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants