From d9371a7a2248c8af0effc4f777bf362d9efe5e4a Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Sun, 14 Apr 2019 22:19:36 +0200 Subject: [PATCH] configurehood: Leverage -H option for batctl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since batctl can suppress headers, we do not have to count lines. Cosmetical change. Signed-off-by: Adrian Schmutzler Reviewed-by: Fabian Bläse Reviewed-by: Robert Langhammer --- 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 2d448fc..e84f2bc 100755 --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood @@ -22,7 +22,7 @@ rm -f "$hoodfiletmp" # Gatewaycheck function isGatewayAvailable() { - if [ "$(batctl gwl | wc -l)" -gt 2 ]; then + if [ -n "$(batctl gwl -H)" ]; then return 0 else return 1