mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-28 19:53: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.
14 lines
210 B
Bash
14 lines
210 B
Bash
setenv dev_mode no
|
|
setenv factory_reset no
|
|
|
|
echo -n "dev-mode: "
|
|
run ixdevmode
|
|
echo -n "factory-reset: "
|
|
run ixfactory
|
|
|
|
if test "${dev_mode}" = "yes"; then
|
|
sleep 1 && run ixboot
|
|
else
|
|
run ixboot
|
|
fi
|