-
Notifications
You must be signed in to change notification settings - Fork 2
/
uninstall.sh
executable file
·68 lines (57 loc) · 1.23 KB
/
uninstall.sh
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
if [[ $(id -u) != 0 ]]
then
echo "Please, run this script as root (using sudo for example)"
exit 1
fi
systemctl stop asus-stylus
if [[ $? != 0 ]]
then
echo "asus-stylus.service cannot be stopped correctly..."
exit 1
fi
systemctl disable asus-stylus
if [[ $? != 0 ]]
then
echo "asus-stylus.service cannot be disabled correctly..."
exit 1
fi
rm -vf /usr/lib/systemd/system/asus-stylus.service
if [[ $? != 0 ]]
then
echo "/usr/lib/systemd/system/asus-stylus.service cannot be removed correctly..."
exit 1
fi
rm -vf /usr/bin/asus-stylus
if [[ $? != 0 ]]
then
echo "/usr/bin/asus-stylus cannot be removed correctly..."
exit 1
fi
rm -vrf /etc/asus-stylus/
if [[ $? != 0 ]]
then
echo "/etc/asus-stylus/ cannot be removed correctly..."
exit 1
fi
rm -vrf /usr/lib/asus-stylus/
if [[ $? != 0 ]]
then
echo "/usr/lib/asus-stylus/ cannot be removed correctly..."
exit 1
fi
rm -vrf /var/log/asus-stylus
if [[ $? != 0 ]]
then
echo "/var/log/asus-stylus cannot be removed correctly..."
exit 1
fi
systemctl daemon-reload
if [[ $? != 0 ]]; then
echo "Something went wrong when was called systemctl daemon reload"
exit 1
else
echo "Systemctl daemon realod called succesfully"
fi
echo "Asus stylus python driver uninstalled"
exit 0