Variables for showing list of mesh users

This commit is contained in:
Bob Mottram 2017-12-08 14:27:14 +00:00
parent 8481a701eb
commit c6c28e5ce4
1 changed files with 3 additions and 4 deletions

View File

@ -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 <<EOF > $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