mirror of
https://github.com/tailscale-dev/deck-tailscale.git
synced 2025-10-22 07:28:14 +00:00

- Detect Steam Deck via /etc/os-release and use ~/.local/bin for symlinks - Fall back to /usr/local/bin on other systems to avoid read-only filesystem - Ensure target directories exist with mkdir -p before creating symlinks - Keep profile.d approach as fallback and source for immediate availability - Update uninstall script to clean up symlinks from both possible locations - Use rm -rf for systemd override directory and specific file removal Fixes #38
15 lines
644 B
Bash
15 lines
644 B
Bash
systemctl stop tailscaled
|
|
systemctl disable tailscaled
|
|
rm -f /etc/systemd/system/tailscaled.service
|
|
rm -rf /etc/systemd/system/tailscaled.service.d
|
|
rm -f /etc/default/tailscaled
|
|
rm -f /etc/profile.d/tailscale.sh
|
|
# Remove symlinks from both possible locations (Steam Deck and other systems)
|
|
rm -f /usr/local/bin/tailscale /usr/local/bin/tailscaled
|
|
rm -f /home/deck/.local/bin/tailscale /home/deck/.local/bin/tailscaled
|
|
# Remove specific Tailscale binaries
|
|
rm -f /opt/tailscale/tailscale
|
|
rm -f /opt/tailscale/tailscaled
|
|
# Remove the directory if it's empty (will fail silently if it contains other files)
|
|
rmdir /opt/tailscale 2>/dev/null || true
|