aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/rc.button
Commit message (Collapse)AuthorAgeFilesLines
* base-files: add reboot only button handlerAlan Swanson2019-05-301-0/+12
| | | | | | | | | | | | For devices such as BTHOMEHUBV5A with both reset and restart buttons, its easily accessible restart button has been assigned to KEY_POWER power script to poweroff preventing accidental (or malicious) factory resets by KEY_RESTART reset script. However an easily accessible button immediately powering off the device is also undesirable. Fixes: FS#1965 Signed-off-by: Alan Swanson <reiver@improbability.net> Signed-off-by: Petr Štetiar <ynezz@true.cz> [long line wrap]
* base-files: fix off-by-one in counting seconds for factory resetRafał Miłecki2018-03-011-1/+1
| | | | | | | | | 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>
* base-files: Ensure reset only works if an overlay existsChris Blake2016-10-271-1/+5
| | | | | | | | | | | | | | Currently the reset script will try to run jffs2reset on boards that are running a rw rootfs, such as ext4. This will cause jffs2reset to fail and the board to never reboot while the LED blinks until a manual reboot. This commit does two different things: 1. Disables reset on boards that do not have an overlay mount 2. Disables the Blinking LED after 5 seconds if the board does not support reset Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
* treewide: remove bad local shell variable declarationsJo-Philipp Wich2016-09-241-1/+1
| | | | | | | Local variable declarations outside of functions are illegal since the Busybox update to v1.25.0, therfore remove them from the appropriate places. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* base-files: rework reset button script to indicate factory resetJohn Crispin2015-08-171-14/+21
| | | | | | | | | With this change we let user know 5 seconds have passed and reset button can be released (to trigger factory reset) Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 46650
* base-files: buttons: make power script return 0Rafał Miłecki2015-08-121-0/+2
| | | | | | | | It was missed in the r46471. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 46582
* buttons: make all button handler scripts return 0John Crispin2015-07-243-0/+6
| | | | | | | | this is required by the new button timeout feature Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46471
* base-files: /etc/rc.button/power should be executableJohn Crispin2014-06-031-0/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 40993
* base-files: add simple shutdown scriptJohn Crispin2014-06-021-0/+5
| | | | | | | | | | | | | Since svn rev [38557] we support power buttons, for example the ACPI power button on x86 machines. Add a simple shutdown script to /etc/rc.button, to gracefully shutdown the machine after the power button is pressed. Tested on x86 and x86_64 in a kvm virtual machine. Signed-off-by: Stefan Hellermann <stefan@the2masters.de> SVN-Revision: 40909
* base-files: remove duplicate wps button handler (#15621)Felix Fietkau2014-04-181-6/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40528
* base-files: don't enter failsafe if triggered by switchLuka Perkov2013-11-111-1/+2
| | | | | | | | Fixes failsafe issues with switches after r38725. Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38770
* base-files: fix typo in rfkill scriptJohn Crispin2013-11-111-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38742
* base-files: update rfkill script to work with slider buttonsJohn Crispin2013-11-111-2/+9
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38729
* base-files: add a generic wps button handlerJohn Crispin2013-11-111-0/+6
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38726
* base-files: be verbose when entering failsafe due to a button being pressedJohn Crispin2013-07-251-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37535
* mount_root: prepare base-filesJohn Crispin2013-04-251-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36429
* make basefiles aware of procdJohn Crispin2013-03-133-0/+43
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36003