Signed-off-by: Rolf Eike Beer <e...@emlix.com>
---
 examples/udhcp/simple.script | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/udhcp/simple.script b/examples/udhcp/simple.script
index 53974e6d6..61cc3fe1f 100755
--- a/examples/udhcp/simple.script
+++ b/examples/udhcp/simple.script
@@ -52,7 +52,6 @@ case "$1" in
                        done
                fi
 
-               echo "Recreating $RESOLV_CONF"
                # If the file is a symlink somewhere (like /etc/resolv.conf
                # pointing to /run/resolv.conf), make sure things work.
                if test -L "$RESOLV_CONF"; then
@@ -60,6 +59,7 @@ case "$1" in
                        test -e "$RESOLV_CONF" || touch "$RESOLV_CONF"
                fi
                realconf=$(readlink -f "$RESOLV_CONF" 2>/dev/null || echo 
"$RESOLV_CONF")
+               echo "Recreating $realconf"
                tmpfile="$realconf-$$"
                > "$tmpfile"
                [ -n "$domain" ] && echo "search $domain" >> "$tmpfile"
-- 
2.22.0


-- 
Rolf Eike Beer, emlix GmbH, http://www.emlix.com
Fon +49 551 30664-0, Fax +49 551 30664-11
Gothaer Platz 3, 37083 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055

emlix - smart embedded open source


_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to