aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2019-08-13 17:41:56 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2019-09-12 12:06:46 +0200
commit7f89ebe18ff2f5b3b5e8b2d617d682cb1d56293b (patch)
tree17279670e1bc99fb8d6b5b2c8a0db02bcf203daa
parentaf18b301eb16eb8496b31e5386b4c21c9045a5e6 (diff)
downloadbusybox-w32-7f89ebe18ff2f5b3b5e8b2d617d682cb1d56293b.tar.gz
busybox-w32-7f89ebe18ff2f5b3b5e8b2d617d682cb1d56293b.tar.bz2
busybox-w32-7f89ebe18ff2f5b3b5e8b2d617d682cb1d56293b.zip
examples/udhcp/simple.script: print the filename actually changed
Signed-off-by: Rolf Eike Beer <eb@emlix.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-xexamples/udhcp/simple.script2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/udhcp/simple.script b/examples/udhcp/simple.script
index 29199aa39..6658fbeef 100755
--- a/examples/udhcp/simple.script
+++ b/examples/udhcp/simple.script
@@ -53,7 +53,6 @@ case "$1" in
53 done 53 done
54 fi 54 fi
55 55
56 echo "Recreating $RESOLV_CONF"
57 # If the file is a symlink somewhere (like /etc/resolv.conf 56 # If the file is a symlink somewhere (like /etc/resolv.conf
58 # pointing to /run/resolv.conf), make sure things work. 57 # pointing to /run/resolv.conf), make sure things work.
59 if test -L "$RESOLV_CONF"; then 58 if test -L "$RESOLV_CONF"; then
@@ -61,6 +60,7 @@ case "$1" in
61 test -e "$RESOLV_CONF" || touch "$RESOLV_CONF" 60 test -e "$RESOLV_CONF" || touch "$RESOLV_CONF"
62 fi 61 fi
63 realconf=$(readlink -f "$RESOLV_CONF" 2>/dev/null || echo "$RESOLV_CONF") 62 realconf=$(readlink -f "$RESOLV_CONF" 2>/dev/null || echo "$RESOLV_CONF")
63 echo "Recreating $realconf"
64 tmpfile="$realconf-$$" 64 tmpfile="$realconf-$$"
65 > "$tmpfile" 65 > "$tmpfile"
66 [ -n "$domain" ] && echo "search $domain" >> "$tmpfile" 66 [ -n "$domain" ] && echo "search $domain" >> "$tmpfile"