瀏覽代碼

Variables for showing list of mesh users

Bob Mottram 7 年之前
父節點
當前提交
c6c28e5ce4
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3
    4
      src/freedombone-image-customise

+ 3
- 4
src/freedombone-image-customise 查看文件

887
     # for gtk dialog entry
887
     # for gtk dialog entry
888
     chroot "$rootdir" apt-get -yq install zenity
888
     chroot "$rootdir" apt-get -yq install zenity
889
 
889
 
890
-    StrMeshUsers=$"Mesh Users"
891
-    StrUsername=$'Username'
892
-    StrToxID=$'Tox ID'
893
-
894
     # Produce a text file on the desktop listing users on the mesh
890
     # Produce a text file on the desktop listing users on the mesh
895
     cat <<EOF > $rootdir/usr/bin/list-tox-users
891
     cat <<EOF > $rootdir/usr/bin/list-tox-users
896
 #!/bin/bash
892
 #!/bin/bash
893
+StrMeshUsers=\$"Mesh Users"
894
+StrUsername=\$'Username'
895
+StrToxID=\$'Tox ID'
897
 ethernet_connected=\$(cat /sys/class/net/eth0/carrier)
896
 ethernet_connected=\$(cat /sys/class/net/eth0/carrier)
898
 users_list=\$(lstox | awk -F ' ' '{\$1=""; print \$0}' | sed -e 's/^[[:space:]]*//' | sort -d | uniq)
897
 users_list=\$(lstox | awk -F ' ' '{\$1=""; print \$0}' | sed -e 's/^[[:space:]]*//' | sort -d | uniq)
899
 if [ \${#users_list} -eq 0 ]; then
898
 if [ \${#users_list} -eq 0 ]; then