From patchwork Tue Jan 2 14:46:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Add option to set Hoodconfiguration fix From: Christian Dresel X-Patchwork-Id: 731 Message-Id: <20180102144637.8319-1-fff@chrisi01.de> To: franken-dev@freifunk.net Date: Tue, 2 Jan 2018 15:46:36 +0100 diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood index 2b9c47e..02d9a90 100755 --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood @@ -1,5 +1,10 @@ #!/bin/sh +if [ $(uci -q get fff.system.hoodfix) ]; then + echo "Hood is fix, we do nothing" + exit 1 +fi + . /usr/share/libubox/jshn.sh . /lib/functions/fff/keyxchange . /lib/functions/fff/network