forked from stockmind/gpd-pocket-ubuntu-respin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean-ansible.sh
52 lines (49 loc) · 1.76 KB
/
clean-ansible.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
#!/bin/bash
# This is an experimental clean script, use at your own risk
# This script is used to clean configuration files of Ansible Playbook for GPD Pocket
if [ $EUID != 0 ]; then
sudo "$0" "$@"
exit $?
fi
rm -f /etc/dconf/db/local.d/01scale
rm -f /etc/dconf/db/local.d/02subpixel
rm -f /etc/dconf/db/local.d/03scaling
rm -f /etc/dconf/db/local.d/03scaling
rm -f /etc/dconf/profile/gdm/profile
rm -f /etc/dconf/profile/user/profile
rm -f /etc/X11/Xsession.d/01gpd-rotate
rm -f /etc/X11/xinit/xinitrc.d/01gpd-rotate
rm -f /etc/gpd/rotate.conf
rm -f /usr/local/sbin/gpd-rotate
rm -f /etc/systemd/system/gpd-rotate.service
rm -f /etc/gpdfand.conf
rm -f /etc/X11/Xsession.d/01_touchegg
rm -f /etc/X11/xinit/xinitrc.d/01_touchegg
rm -f /etc/systemd/system/gpdfand.service
rm -f /etc/systemd/system/gpdrotate.service
rm -f /etc/udev/rules.d/99-local-bluetooth.rules
rm -f /etc/X11/xorg.conf.d/30-monitor.conf
rm -f /etc/X11/xorg.conf.d/80-screen.conf
rm -f /etc/X11/xorg.conf.d/89-screen.conf
rm -f /etc/X11/xorg.conf.d/90-monitor.conf
rm -f /etc/X11/xorg.conf.d/90-screen.conf
rm -f /etc/X11/Xsession.d/01gpdrotate
rm -f /etc/X11/Xsession.d/01touchscreen
rm -f /etc/X11/Xsession.d/02gpdrotate
rm -f /etc/X11/Xsession.d/02scale
rm -f /etc/X11/Xsession.d/03scaling
rm -f /etc/X11/Xsession.d/03scrolling
rm -f /etc/X11/Xsession.d/04gpdrotate
rm -f /etc/X11/Xsession.d/98gpdrotate
rm -f /etc/X11/Xsession.d/98touchscreen
rm -f /etc/X11/Xsession.d/99touchscreen
rm -f /lib/systemd/system-sleep/gpdfand
rm -f /root/ansible-gpdpocket
rm -f /usr/local/bin/gpdfand
rm -f /usr/local/bin/ansible-update
rm -f /usr/local/sbin/gpdfand
rm -f /usr/local/sbin/gpdrotate
rm -f /usr/src/linux-gpdpocket
rm -f /var/lib/gdm3/.config/monitors.xml
rm -f /var/lib/lightdm/.config/monitors.xml
rm -f /var/log/gpdfand