Bob Mottram 8 лет назад
Родитель
Сommit
863ad4c343
1 измененных файлов: 5 добавлений и 1 удалений
  1. 5
    1
      src/freedombone-app-syncthing

+ 5
- 1
src/freedombone-app-syncthing Просмотреть файл

94
     SYNCTHING_ID=$(cat ~/.syncthing-server-id)
94
     SYNCTHING_ID=$(cat ~/.syncthing-server-id)
95
     dialog --title $"Device ID for ${PROJECT_NAME}" \
95
     dialog --title $"Device ID for ${PROJECT_NAME}" \
96
            --backtitle $"Freedombone User Control Panel" \
96
            --backtitle $"Freedombone User Control Panel" \
97
-           --msgbox $"In a desktop terminal press shift and select the ID below,\nthen right click and copy.\n\nWithin Connectbot select Menu/Copy and then highlight the ID below\n\n$SYNCTHING_ID" 12 78
97
+           --msgbox $"In a desktop terminal press shift and select the ID below,\nthen right click and copy.\n\nWithin Connectbot select Menu/Copy and then highlight the ID below\n\n$SYNCTHING_ID\n\nAlternatively press Enter to display a QR code which can be scanned." 13 78
98
+    clear
99
+    echo $'Your Syncthing ID code'
100
+    echo ''
101
+    echo "$SYNCTHING_ID" | qrencode -t UTF8
98
 }
102
 }
99
 
103
 
100
 function syncthing_add_id {
104
 function syncthing_add_id {