script for on-device development (#126)

* symlink /usr/comma/

* remount

---------

Co-authored-by: Comma Device <device@comma.ai>
This commit is contained in:
Adeeb Shihadeh
2023-04-02 12:54:02 -07:00
committed by GitHub
parent 7e92eaf5d9
commit 11f43edddf

17
scripts/setup-on-device.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
ROOT=$DIR/../
if [ ! -f /AGNOS ]; then
echo "Exiting, not running AGNOS"
exit 1
fi
sudo mount -o rw,remount /
sudo rm -rf /usr/comma
sudo ln -snf $ROOT/userspace/usr/comma/ /usr/comma
sudo mount -o ro,remount /