From c6c28e5ce41f27954ba4a6e0fd26c2398f75a3b5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 8 Dec 2017 14:27:14 +0000 Subject: [PATCH] Variables for showing list of mesh users --- src/freedombone-image-customise | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index e9cfdf6e..83371196 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -887,13 +887,12 @@ function configure_user_interface { # for gtk dialog entry chroot "$rootdir" apt-get -yq install zenity - StrMeshUsers=$"Mesh Users" - StrUsername=$'Username' - StrToxID=$'Tox ID' - # Produce a text file on the desktop listing users on the mesh cat < $rootdir/usr/bin/list-tox-users #!/bin/bash +StrMeshUsers=\$"Mesh Users" +StrUsername=\$'Username' +StrToxID=\$'Tox ID' ethernet_connected=\$(cat /sys/class/net/eth0/carrier) users_list=\$(lstox | awk -F ' ' '{\$1=""; print \$0}' | sed -e 's/^[[:space:]]*//' | sort -d | uniq) if [ \${#users_list} -eq 0 ]; then