mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-28 15:36:29 +00:00
Yellow: Support wipeing boot files on NVMe (#2173)
This commit is contained in:
parent
2870e04586
commit
340cbc4c6b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user