forked from AndrewCrewKuznetsov/xneur-devel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xneur_full_clear.sh
executable file
·43 lines (33 loc) · 1.57 KB
/
xneur_full_clear.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
#!/bin/bash
UID_ROOT=0
if [ "$UID" -ne "$UID_ROOT" ]
then
zenity --error --text="Use sudo ./xneur_full_clear.sh" --title="Access denied"
exit
fi
echo "Find and delete xneur, gxneur and kxneur directories"
find /usr -name "*xneur*" -type d -print | xargs /bin/chmod 0777 -R
find /usr -name "*xneur*" -type d -print | xargs /bin/rm -Rf
echo "Find and delete xneur, gxneur and kxneur files"
find /usr -name "*xneur*" -type f -print | xargs /bin/chmod a+rw
find /usr -name "*xneur*" -type f -print | xargs /bin/rm -f
echo "Find and delete xneur libraries links"
find /usr -name "*libxnconfig*" -type l -print | xargs /bin/chmod a+rw
find /usr -name "*libxnconfig*" -type l -print | xargs /bin/rm -f
echo "Find and delete xneur libraries"
find /usr -name "*libxnconfig*" -type f -print | xargs /bin/chmod a+rw
find /usr -name "*libxnconfig*" -type f -print | xargs /bin/rm -f
echo "Find and delete xneur libraries links"
find /usr -name "*libxneur*" -type l -print | xargs /bin/chmod a+rw
find /usr -name "*libxneur*" -type l -print | xargs /bin/rm -f
echo "Find and delete xneur libraries"
find /usr -name "*libxneur*" -type f -print | xargs /bin/chmod a+rw
find /usr -name "*libxneur*" -type f -print | xargs /bin/rm -f
echo "Find and delete xneur libraries links"
find /usr -name "*libxntest*" -type l -print | xargs /bin/chmod a+rw
find /usr -name "*libxntest*" -type l -print | xargs /bin/rm -f
echo "Find and delete xneur libraries"
find /usr -name "*libxntest*" -type f -print | xargs /bin/chmod a+rw
find /usr -name "*libxntest*" -type f -print | xargs /bin/rm -f
echo " "
echo "All Done!"