We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3f6007 commit e06ba0cCopy full SHA for e06ba0c
bin/play_button
@@ -77,8 +77,10 @@ while is_button_pressed; do
77
echo "Disabling OTA reboot"
78
write_misc -o 0
79
else
80
- echo "Switching last success partition"
81
- write_misc -l `read_misc boot_rootfs`
+ bootpart=`read_misc boot_rootfs`
+ [ "$bootpart" = "0" ] && bootpart="1" || bootpart="0"
82
+ echo "Switching last success partition to $bootpart"
83
+ write_misc -l $bootpart
84
fi
85
86
bootpart="boot0"
0 commit comments