mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-09 08:42:03 +08:00
11f43edddf
* symlink /usr/comma/ * remount --------- Co-authored-by: Comma Device <device@comma.ai>
18 lines
306 B
Bash
Executable File
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 /
|