Files
agnos-builder/scripts/setup-on-device.sh
T
Adeeb Shihadeh 11f43edddf script for on-device development (#126)
* symlink /usr/comma/

* remount

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-04-02 12:54:02 -07:00

18 lines
306 B
Bash
Executable File

#!/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 /