fff-hoods: only delete hiddenapfile if ap was configured

Signed-off-by: Tim Niemeyer <tim@tn-x.org>
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Tim Niemeyer 2017-11-03 21:07:01 +01:00
parent 5120b9a59d
commit e22663a673
1 changed files with 2 additions and 1 deletions

View File

@ -56,8 +56,9 @@ if [ -f "$hiddenapfile" ]; then
uci commit network
wifi
rm "$hiddenapfile"
fi
rm "$hiddenapfile"
fi
lat=$(uci -q get system.@system[0].latitude)