Yellow: Support wipeing boot files on NVMe (#2173)

This commit is contained in:
Stefan Agner 2022-10-06 23:49:47 +02:00 committed by GitHub
parent 2870e04586
commit 340cbc4c6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ if gpio input GPIO27; then
# ... and Blue Button Pressed? # ... and Blue Button Pressed?
if gpio input GPIO26; then if gpio input GPIO26; then
echo "Boot wipe has been pressed, deleting boot files to trigger USB boot..." echo "Boot wipe has been pressed, deleting boot files to trigger USB boot..."
fatrm mmc 0:1 /start4.elf fatrm ${devtype} ${devnum}:1 /start4.elf
reset reset
fi fi
# Red still pressed? # Red still pressed?
@ -35,7 +35,7 @@ if gpio input GPIO27; then
setenv bootargs_hassos "${bootargs_hassos} haos.wipe=1" setenv bootargs_hassos "${bootargs_hassos} haos.wipe=1"
fi fi
elif gpio input GPIO26; then elif gpio input GPIO26; then
ums 0 mmc 0 ums 0 ${devtype} ${devnum}
fi fi
# HassOS system A/B # HassOS system A/B