mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-06-08 11:04:51 +08:00
20 lines
463 B
Bash
Executable File
20 lines
463 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
DEVICE=${DEVICE:-comma-ethernet}
|
|
|
|
scp output/boot.img output/*.ko $DEVICE:/data/tmp/
|
|
ssh $DEVICE <<EOF
|
|
sudo dd if=/data/tmp/boot.img of=/dev/disk/by-partlabel/boot_a
|
|
sudo dd if=/data/tmp/boot.img of=/dev/disk/by-partlabel/boot_b
|
|
|
|
sudo mount -o rw,remount /
|
|
sudo resize2fs $(findmnt -n -o SOURCE /)
|
|
sudo mv /data/tmp/wlan.ko /usr/comma/wlan.ko
|
|
rm -rf /data/tmp/*
|
|
sudo mount -o ro,remount / || true
|
|
sudo reboot
|
|
EOF
|