forked from freifunk-franken/firmware
configurehood: Copy local hoodfile to common location
Instead of overwriting local variable to local hoodfile location, copy it to the commonly used location. This makes the local hoodfile behave exactly like central hoodfiles, which prevents some border cases. The previous behaviour mainly caused issues when using getJsonPath() and getUpgradePath() from fff-hoodutils. Signed-off-by: Fabian Bläse <fabian@blaese.de> Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
parent
9999b7b2cb
commit
1da800bfce
|
@ -77,7 +77,7 @@ if [ -s "$hoodfilewww" ] && isGatewayAvailable ; then
|
|||
fi
|
||||
|
||||
if [ -s "$hoodfilelocal" ]; then
|
||||
hoodfiletmp="$hoodfilelocal"
|
||||
cp "$hoodfilelocal" "$hoodfiletmp"
|
||||
echo "Use local hood file"
|
||||
else
|
||||
# if we have Internet, we download the Hoodfile from the keyxchangev2
|
||||
|
|
Loading…
Reference in New Issue