1
0
forked from finn/tinyboard

syncthing.sh, README.md: change syncthing menu to 0-based indexing

This commit is contained in:
Justin Oros
2026-04-18 18:57:36 -07:00
parent c2aec56490
commit 982b8a8641
2 changed files with 30 additions and 30 deletions

View File

@@ -121,16 +121,16 @@ Entry point. Presents a menu:
### `syncthing.sh`
Interactive Syncthing management. Can be run on the hub or any spoke. Presents a menu:
- 1) Show This Device's ID
- 2) Pending Devices
- 3) List Devices
- 4) Add Device
- 5) Remove Device
- 6) List Folders
- 7) Add Folder
- 8) Remove Folder
- 9) Share Folder with Device
- 10) Unshare Folder from Device
- 0) Show This Device's ID
- 1) Pending Devices
- 2) List Devices
- 3) Add Device
- 4) Remove Device
- 5) List Folders
- 6) Add Folder
- 7) Remove Folder
- 8) Share Folder with Device
- 9) Unshare Folder from Device
Requires Docker and a running Syncthing container. Auto-discovers the container and API key.

View File

@@ -403,31 +403,31 @@ get_apikey
while true; do
header "Syncthing Manager"
echo " 1) Show This Device's ID"
echo " 2) Pending Devices"
echo " 3) List Devices"
echo " 4) Add Device"
echo " 5) Remove Device"
echo " 6) List Folders"
echo " 7) Add Folder"
echo " 8) Remove Folder"
echo " 9) Share Folder with Device"
echo " 10) Unshare Folder from Device"
echo " 0) Show This Device's ID"
echo " 1) Pending Devices"
echo " 2) List Devices"
echo " 3) Add Device"
echo " 4) Remove Device"
echo " 5) List Folders"
echo " 6) Add Folder"
echo " 7) Remove Folder"
echo " 8) Share Folder with Device"
echo " 9) Unshare Folder from Device"
echo " q) Quit"
echo ""
read -rp "Choose: " OPT
echo ""
case "$OPT" in
1) show_own_device_id ;;
2) show_pending_devices ;;
3) list_devices ;;
4) add_device ;;
5) remove_device ;;
6) list_folders ;;
7) add_folder ;;
8) remove_folder ;;
9) share_folder ;;
10) unshare_folder ;;
0) show_own_device_id ;;
1) show_pending_devices ;;
2) list_devices ;;
3) add_device ;;
4) remove_device ;;
5) list_folders ;;
6) add_folder ;;
7) remove_folder ;;
8) share_folder ;;
9) unshare_folder ;;
q|Q) echo "Bye."; exit 0 ;;
*) warn "Invalid choice." ;;
esac