forked from Gernby/raspberry-pilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
finish_install.sh
32 lines (26 loc) · 1.04 KB
/
finish_install.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
#!/bin/bash
cd ~/
mv raspberry-pilot raspilot
cd raspilot
sudo mkdir /data
sudo mkdir /data/params
sudo chown ubuntu /data
sudo chown ubuntu /data/params
sudo tee /etc/udev/rules.d/11-panda.rules <<EOF
SUBSYSTEM=="usb", ATTRS{idVendor}=="bbaa", ATTRS{idProduct}=="ddcc", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="bbaa", ATTRS{idProduct}=="ddee", MODE="0666"
SUBSYSTEMS=="usb", ATTR{idVendor}=="bbaa", ATTR{idProduct}=="ddcc", MODE:="0666"
SUBSYSTEMS=="usb", ATTR{idVendor}=="bbaa", ATTR{idProduct}=="ddee", MODE:="0666"
EOF
sudo udevadm control --reload-rules && sudo udevadm trigger
(crontab -l; echo "@reboot bash raspilot/launch_openpilot.sh";) | crontab -
crontab -l
sudo cp ~/raspilot/phonelibs/btcmd.txt /boot/firmware
sudo cp ~/raspilot/phonelibs/usercfg.txt /boot/firmware/usercfg.txt
sudo cp ~/raspilot/phonelibs/influxdb.conf /etc/influxdb/influxdb.conf
sudo apt --fix-broken install -y
sudo apt clean -y
sudo bash phonelibs/install_capnp.sh
python3 -m pipenv --python 3.7
python3 -m pipenv install
python3 -m pipenv run bash build_all.sh