forked from JohanSjoblom/picochess
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-dgtpi-clock.sh
More file actions
executable file
·23 lines (21 loc) · 1.1 KB
/
install-dgtpi-clock.sh
File metadata and controls
executable file
·23 lines (21 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# Installation script for DGTPi clock and DGT3000 mod
# Run install-picochess first to install base picochess
#
# you also need to set dgtpi = True in ini file - use with care, know what you are doing
# you can use the example ini file picochess.ini.example-dgtpi3-clock
echo "setting up dgtpi service for hardwired clock like DGTPi"
ln -sf /opt/picochess/etc/$(uname -m)/dgtpicom /opt/picochess/etc/dgtpicom
ln -sf /opt/picochess/etc/$(uname -m)/dgtpicom.so /opt/picochess/etc/dgtpicom.so
cp etc/dgtpi.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable dgtpi.service
echo "no setcap rights used in this script, they are all in install-picochess.sh"
echo "setcap not needed as no system update done here"
echo " ------- "
echo "DGTPi clock installation complete. Please reboot"
echo "You need to copy picochess.ini-example-dgtpi-clock to picochess.ini"
echo "... or change picochess.ini file with dgt clock setting dgtpi = True"
echo "NOTE: dgtpi = True setting should be used with care, only for DGTPi clocks"
echo "In case of problems have a look in the log /opt/picochess/logs/picochess.log"