enable systemctl services [fix typo]

pull/182/head
Yossi 2018-04-08 19:25:04 +03:00
parent 93a30d21b4
commit 4aee8ca676
1 changed files with 3 additions and 22 deletions

View File

@ -114,36 +114,17 @@ sudo pip install pyserial
# express on startup
sudo systemtl enable ws
sudo systemctl enable ws
# dride-core on startup
sudo update-rc.d dride-core defaults
sudo systemtl enable record
sudo systemtl enable ble
sudo systemctl enable record
sudo systemctl enable ble
if [ ${OS_TYPE} == "dride-plus" ]; then
## GPS https://www.raspberrypi.org/forums/viewtopic.php?p=947968#p947968
echo "========== Install GPS ============"
sudo apt-get install gpsd gpsd-clients cmake subversion build-essential espeak freeglut3-dev imagemagick libdbus-1-dev libdbus-glib-1-dev libdevil-dev libfontconfig1-dev libfreetype6-dev libfribidi-dev libgarmin-dev libglc-dev libgps-dev libgtk2.0-dev libimlib2-dev libpq-dev libqt4-dev libqtwebkit-dev librsvg2-bin libsdl-image1.2-dev libspeechd-dev libxml2-dev ttf-liberation -y
echo "" >> /boot/config.txt
echo "enable_uart=1" >> /boot/config.txt
# this will be done after initial boot
# echo "dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes spidev.bufsiz=32768 rootwait" > /boot/cmdline.txt
# 3)Run
sudo systemctl stop serial-getty@ttyS0.service
sudo systemctl disable serial-getty@ttyS0.service
sudo systemctl stop gpsd.socket
sudo systemctl disable gpsd.socket
# reboot
# 5) Execute the daemon reset
#sudo killall gpsd
#sudo gpsd /dev/ttyS0 -F /var/run/gpsd.sock
fi