diff --git a/scripts/install/server.sh b/scripts/install/server.sh index b77f56a..e3e039b 100755 --- a/scripts/install/server.sh +++ b/scripts/install/server.sh @@ -309,11 +309,10 @@ sudo systemctl daemon-reload sudo systemctl enable --now lesavka-hw-watchdog sudo systemctl enable --now lesavka-watchdog.timer -if [[ -n ${LESAVKA_ALLOW_GADGET_RESET:-} ]] || ! is_attached_state "$UDC_STATE"; then - sudo systemctl restart lesavka-uvc - echo "✅ lesavka-uvc installed and restarted..." +if systemctl is-active --quiet lesavka-uvc; then + echo "✅ lesavka-uvc is active (dependency-managed; manual restart disabled)." else - echo "⚠️ UDC state is '$UDC_STATE' - skipping lesavka-uvc restart." + echo "⚠️ lesavka-uvc is not active; start via lesavka-core dependency path." fi sudo systemctl restart lesavka-server