1
0
forked from finn/tinyboard

add spoke registry, per-spoke crontab, and offboard-spoke.sh

This commit is contained in:
Justin Oros
2026-04-16 13:41:56 -07:00
parent 4c08f3b389
commit 395ab4ed0e
2 changed files with 7 additions and 15 deletions

View File

@@ -17,9 +17,10 @@ header "TinyBoard Setup"
echo ""
echo " 1) Set up this device as a new spoke"
echo " 2) Onboard a new spoke from the hub"
echo " 3) Set up this device as a new hub"
echo " 3) Offboard a spoke from the hub"
echo " 4) Set up this device as a new hub"
echo ""
read -rp "Choose [1/2/3]: " CHOICE
read -rp "Choose [1/2/3/4]: " CHOICE
case "$CHOICE" in
1)
@@ -32,6 +33,10 @@ case "$CHOICE" in
exec "$SCRIPT_DIR/hub/onboard-spoke.sh"
;;
3)
info "Starting hub offboarding..."
exec "$SCRIPT_DIR/hub/offboard-spoke.sh"
;;
4)
[ "$(id -u)" -eq 0 ] || die "Hub setup must be run as root"
info "Starting hub setup..."
exec "$SCRIPT_DIR/hub/setup-hub.sh"