[PATCH] examples/udhcp/simple.script: print the filename actually changed

Rolf Eike Beer eb at emlix.com
Tue Sep 10 12:20:34 UTC 2019


Am Dienstag, 13. August 2019, 17:41:56 CEST schrieb Rolf Eike Beer:

> Signed-off-by: Rolf Eike Beer <eb at 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"

Ping?
-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 313 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20190910/ac1a5b06/attachment.asc>


More information about the busybox mailing list