[PATCH] fff-hoods: Suppress warning for missing sectorfile
Tim Niemeyer
tim at tn-x.org
Sa Nov 4 15:33:52 CET 2017
Hi
Reviewed-by: Tim Niemeyer <tim at tn-x.org>
Tim
Am Samstag, den 04.11.2017, 15:06 +0100 schrieb Adrian Schmutzler:
> Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
> ---
> src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> index 5447d2f..000e3b8 100755
> --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> @@ -232,7 +232,7 @@ if [ -s "$hoodfile" ]; then
> # copy the file to webroot so that other mesh
> routers can download it;
> # copy only after all other steps so IF can be
> reentered if something goes wrong
> cp "$hoodfile" "$hoodfilecopy"
> - cp "$sectortmp" "$sectorcopy"
> + [ -s "$sectortmp" ] && cp "$sectortmp" "$sectorcopy"
>
> else
> echo "We have no new file. We do nothing. We try it
> again in 5 minutes...";
> --
> 2.7.4
>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : signature.asc
Dateityp : application/pgp-signature
Dateigröße : 488 bytes
Beschreibung: This is a digitally signed message part
URL : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20171104/fb1704da/attachment.sig>
Mehr Informationen über die Mailingliste franken-dev