mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-08-22 08:44:01 +08:00
bring factory reset back to userspace (#203)
* bring factory reset back to userspace * Update comma.sh * Add files via upload
This commit is contained in:
@@ -48,13 +48,12 @@ if [ -f "$RESET_TRIGGER" ]; then
|
||||
echo "launching system reset, reset trigger present"
|
||||
rm -f $RESET_TRIGGER
|
||||
$RESET
|
||||
elif (( "$(cat /sys/devices/platform/soc/894000.i2c/i2c-2/2-0017/touch_count)" > 4 )); then
|
||||
echo "launching system reset, got taps"
|
||||
$RESET
|
||||
elif ! mountpoint -q /data; then
|
||||
echo "userdata not mounted. loading system reset"
|
||||
if [ "$(head -c 15 /dev/disk/by-partlabel/userdata)" == "COMMA_ABL_RESET" ]; then
|
||||
$RESET --format
|
||||
else
|
||||
$RESET --recover
|
||||
fi
|
||||
$RESET --recover
|
||||
fi
|
||||
|
||||
# symlink vscode to userdata
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user