21 lines
694 B
Bash
Executable file
21 lines
694 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
RED='\033[0;31m'
|
|
NC='\033[0m'
|
|
|
|
echo -e "${YELLOW}[*] Parando e desabilitando gamesir-keepalive.service...${NC}"
|
|
systemctl --user stop gamesir-keepalive.service 2>/dev/null || true
|
|
systemctl --user disable gamesir-keepalive.service 2>/dev/null || true
|
|
|
|
echo -e "${YELLOW}[*] Removendo arquivos instalados...${NC}"
|
|
rm -f "$HOME/.local/bin/gamesir-keepalive"
|
|
rm -f "$HOME/.local/bin/gamesir-keepalive.py"
|
|
rm -f "$HOME/.config/systemd/user/gamesir-keepalive.service"
|
|
|
|
echo -e "${YELLOW}[*] Recarregando daemon do systemd...${NC}"
|
|
systemctl --user daemon-reload
|
|
|
|
echo -e "${GREEN}[✓] Desinstalação concluída com sucesso.${NC}"
|