Variables for showing list of mesh users
This commit is contained in:
parent
8481a701eb
commit
c6c28e5ce4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue