From patchwork Fri Nov 3 21:55:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v2] fff-hoods: move hiddenapfile variable From: Tim Niemeyer X-Patchwork-Id: 664 Message-Id: <20171103215510.32216-1-tim@tn-x.org> To: franken-dev@freifunk.net Date: Fri, 3 Nov 2017 22:55:10 +0100 Move the variable definition to the implementation file. This is more intuitive and the variable is not used otherwise. Signed-off-by: Tim Niemeyer Reviewed-by: Christian Dresel Reviewed-by: Adrian Schmutzler --- Changes in v2: - move variable from lib/functions/fff/keyxchange src/packages/fff/fff-hoods/files/lib/functions/fff/keyxchange | 1 - src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/fff/fff-hoods/files/lib/functions/fff/keyxchange b/src/packages/fff/fff-hoods/files/lib/functions/fff/keyxchange index 9aeb434..30963ae 100644 --- a/src/packages/fff/fff-hoods/files/lib/functions/fff/keyxchange +++ b/src/packages/fff/fff-hoods/files/lib/functions/fff/keyxchange @@ -6,7 +6,6 @@ hoodfile="/tmp/keyxchangev2data" hoodfilecopy="/www/hood/keyxchangev2data" -hiddenapfile="/tmp/hiddenapflag" getJsonPath() { jsonfile="" diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood index 42eb966..b10d210 100755 --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood @@ -9,6 +9,7 @@ sectorlocal=/etc/sectorfile sectortmp=/tmp/sectorfile sectorcopy=/www/hood/sectorfile +hiddenapfile=/tmp/hiddenapflag rm -f "$hoodfile"