-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_02.sh
33 lines (26 loc) · 872 Bytes
/
install_02.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
#!/bin/bash
echo "Enable audio"
tee -a /boot/config.txt <<EOF
dtparam=audio=on
dtoverlay=audremap,enable_jack,pins_18_19
EOF
tee -a /boot/config.txt <<EOF
raspi-gpio set 18 op dl
raspi-gpio set 19 op a5
raspi-gpio set 8 a2
raspi-gpio set 7 a2
EOF
echo "Install package"
sudo apt-get install omxplayer git mc screen rsync
echo "Copy services"
sudo cp simpsonstv/services/tvbutton.service /etc/systemd/system/tvbutton.service
sudo cp simpsonstv/services/tvplayer.service /etc/systemd/system/tvplayer.service
sudo chmod +x /home/pi/simpsonstv/dbuscontrol.sh
sudo cp simpsonstv/services/tvautocopy.service /etc/systemd/system/tvautocopy.service
sudo chmod +x /home/pi/simpsonstv/autocopy.sh
echo "Enable services"
sudo systemctl enable tvbutton.service
sudo systemctl enable tvplayer.service
sudo systemctl enable tvautocopy.service
echo "Done. Please reboot OS"
# EOF