|
@@ -94,7 +94,13 @@ function syncthing_show_id {
|
94
|
94
|
SYNCTHING_ID=$(cat ~/.syncthing-server-id)
|
95
|
95
|
dialog --title $"Device ID for ${PROJECT_NAME}" \
|
96
|
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 -n "$SYNCTHING_ID" | qrencode -t UTF8
|
|
102
|
+ echo ''
|
|
103
|
+ read -n1 -rsp $"Press any key to continue..." key
|
98
|
104
|
}
|
99
|
105
|
|
100
|
106
|
function syncthing_add_id {
|