[git commit] examples/udhcp/simple.script: print the filename actually changed
Denys Vlasenko
vda.linux at googlemail.com
Thu Sep 12 10:06:46 UTC 2019
commit: https://git.busybox.net/busybox/commit/?id=7f89ebe18ff2f5b3b5e8b2d617d682cb1d56293b
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Rolf Eike Beer <eb at emlix.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.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 29199aa39..6658fbeef 100755
--- a/examples/udhcp/simple.script
+++ b/examples/udhcp/simple.script
@@ -53,7 +53,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
@@ -61,6 +60,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"
More information about the busybox-cvs
mailing list