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:
Adeeb Shihadeh
2024-01-25 13:38:26 -08:00
committed by GitHub
parent 6027a2bd90
commit 2b15200120
2 changed files with 4 additions and 5 deletions
+4 -5
View File
@@ -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.