TEMP: route live diag to serial via sudo (revert after)
All checks were successful
Mirror to GitHub / mirror (push) Successful in 10s

This commit is contained in:
Breadway 2026-06-14 19:17:46 +08:00
parent 356cc08dfe
commit 122cd39cb1
2 changed files with 20 additions and 18 deletions

View file

@ -41,8 +41,8 @@ if [[ "$(tty)" == /dev/tty1 ]] && [[ -z "$WAYLAND_DISPLAY" ]]; then
export WLR_NO_HARDWARE_CURSORS=1
# Log to a user-writable path (/var/log is root-only; redirecting there
# would fail and silently keep the compositor from ever launching).
Hyprland &>/tmp/hyprland-live.log
echo "Hyprland exited (rc=$?). Log: /tmp/hyprland-live.log"
Hyprland 2>&1 | sudo tee /tmp/hyprland-live.log /dev/ttyS0 >/dev/null
echo "Hyprland exited. Log: /tmp/hyprland-live.log" | sudo tee /dev/ttyS0
exec bash -i
fi
EOF