mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-04-06 06:43:53 +08:00
script for on-device development (#126)
* symlink /usr/comma/ * remount --------- Co-authored-by: Comma Device <device@comma.ai>
This commit is contained in:
17
scripts/setup-on-device.sh
Executable file
17
scripts/setup-on-device.sh
Executable 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 /
|
||||
Reference in New Issue
Block a user