This repository was archived by the owner on Jan 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathuninstall.sh
More file actions
36 lines (35 loc) · 1.43 KB
/
uninstall.sh
File metadata and controls
36 lines (35 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#Script that remove acpi_call_GUI_systemd, acpi_call, and all of the scripts.
# Copyright (C) 2013-2017 Marco Dalla Libera
#
# acpi_call_GUI_systemd is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# acpi_call_GUI_systemd is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
if [ $(id -u) = "0" ]
then
rm -R /usr/local/bin/acpi_call
rm -R /usr/local/bin/acpi_call_GUI_systemd
rm /usr/share/pixmaps/acpiCallGui.png
rm /usr/share/applications/acpi_call_GUI.desktop
systemctl disable automates.service
systemctl disable agg_acpi_call.service
rm /etc/systemd/system/automates.service
rm /etc/systemd/system/agg_acpi_call.service
#enabling GPU drivers again
echo "enabling GPU drivers..."
rm /etc/modprobe.d/noGPUDriver.conf
echo "uninstall complete!"
else
echo "Please use sudo: 'sudo ./uninstall.sh'"
fi