aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2018-02-27 16:44:25 +0100
committerRafał Miłecki <rafal@milecki.pl>2018-03-01 08:04:51 +0100
commit2995d9dfee4cd5a24ff30d15ac9168c9fd443625 (patch)
treedf8e8deaedf1c496922d03fd96c904cbd1acb718 /package/base-files
parent36fb0697e2be89ff893b620848013f398bdc7eff (diff)
downloadupstream-2995d9dfee4cd5a24ff30d15ac9168c9fd443625.tar.gz
upstream-2995d9dfee4cd5a24ff30d15ac9168c9fd443625.tar.bz2
upstream-2995d9dfee4cd5a24ff30d15ac9168c9fd443625.zip
base-files: fix off-by-one in counting seconds for factory reset
There was a mismatch between indicating factory reset and code actually starting it. After 5 seconds status LED started blinking rapidly letting user know it's ready to release reset button. In practice button had to stay pressed for another second in order to relly start the process. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/etc/rc.button/reset2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/rc.button/reset b/package/base-files/files/etc/rc.button/reset
index 4265767437..2403122ad2 100755
--- a/package/base-files/files/etc/rc.button/reset
+++ b/package/base-files/files/etc/rc.button/reset
@@ -20,7 +20,7 @@ released)
echo "REBOOT" > /dev/console
sync
reboot
- elif [ "$SEEN" -gt 5 -a -n "$OVERLAY" ]
+ elif [ "$SEEN" -ge 5 -a -n "$OVERLAY" ]
then
echo "FACTORY RESET" > /dev/console
jffs2reset -y && reboot &