installer: avoid manual restart of uvc dependency unit
This commit is contained in:
parent
6823c8caf6
commit
ea77734220
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user