From 51d7a96991db62490733433a1544a79302662d58 Mon Sep 17 00:00:00 2001
From: MrMM <mm@freifunk-aachen.de>
Date: Tue, 6 Oct 2015 10:21:34 +0200
Subject: [PATCH] Fixed generation comparison

---
 files/lib/gluon/ssid-changer/ssid-changer.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files/lib/gluon/ssid-changer/ssid-changer.sh b/files/lib/gluon/ssid-changer/ssid-changer.sh
index 281a158..319c846 100755
--- a/files/lib/gluon/ssid-changer/ssid-changer.sh
+++ b/files/lib/gluon/ssid-changer/ssid-changer.sh
@@ -7,7 +7,7 @@ OFFLINE_PREFIX='FF_OFFLINE_' # Use something short to leave space for the nodena
 
 # Generate an Offline SSID with the first and last Part of the nodename to allow owner to recognise wich node is down
 NODENAME=`uname -n`
-if [ ${#NODENAME} > $(30-${#OFFLINE_PREFIX}) ] ; then #32 would be possible as well
+if [ ${#NODENAME} -gt $((30 - ${#OFFLINE_PREFIX})) ] ; then #32 would be possible as well
 	HALF=$(( (28 - ${#OFFLINE_PREFIX} ) / 2 ))
 	SKIP=$(( ${#NODENAME} - $HALF ))
 	OFFLINE_SSID=$OFFLINE_PREFIX${NODENAME:0:$HALF}...${NODENAME:$SKIP:${#NODENAME}} # use the first and last part of the nodename for nodes with long name
-- 
GitLab