-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (23 loc) · 801 Bytes
/
Makefile
File metadata and controls
24 lines (23 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
install:
apt-get update
apt-get upgrade -y
apt-get install python-pip cec-utils -y
pip install python-uinput
cp 40-uinput.rules /etc/udev/rules.d
cp remote.service /etc/systemd/system
mv /home/pi/.emulationstation/es_input.cfg /home/pi/.emulationstation/es_input.cfg.bak
cp es_input.cfg /home/pi/.emulationstation
chown pi:pi /home/pi/.emulationstation/es_input.cfg
addgroup uinput
adduser pi uinput
systemctl enable remote.service
systemctl start remote.service
uninstall:
systemctl stop remote.service
systemctl disable remote.service
delgroup uinput
mv /home/pi/.emulationstation/es_input.cfg.bak /home/pi/.emulationstation/es_input.cfg
rm /etc/systemd/system/remote.service
rm /etc/udev/rules.d/40-uinput.rules
pip remove python-uinput
apt-get remove python-pip cec-utils -y