add back userdata format flag

This commit is contained in:
Adeeb Shihadeh
2024-03-19 19:12:26 -07:00
parent 2de31e2006
commit 052d991f9d
+5 -1
View File
@@ -53,7 +53,11 @@ elif (( "$(cat /sys/devices/platform/soc/894000.i2c/i2c-2/2-0017/touch_count)" >
$RESET
elif ! mountpoint -q /data; then
echo "userdata not mounted. loading system reset"
$RESET --recover
if [ "$(head -c 15 /dev/disk/by-partlabel/userdata)" == "COMMA_RESET" ]; then
$RESET --format
else
$RESET --recover
fi
fi
# symlink vscode to userdata