mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-29 20:23:01 +02:00
If the bootloader knows about a factory-reset or dev-mode button, use them to allow stopping the boot process, and to signal the factory-reset condition to infix.
8 lines
204 B
Bash
8 lines
204 B
Bash
if button factory-reset; then
|
|
echo "Keep button pressed for 10 seconds to engage reset"
|
|
if sleep 10 && button factory-reset; then
|
|
setenv factory_reset yes
|
|
echo "FACTORY RESET ENGAGED"
|
|
fi
|
|
fi
|