From: Matthias Schiffer Date: Sat, 21 Mar 2015 16:40:52 +0100 Subject: base-files: disable reset button handling This conflicts with our reset button usage. diff --git a/package/base-files/files/etc/rc.button/reset b/package/base-files/files/etc/rc.button/reset deleted file mode 100755 index 4265767437e8eda3c758fe7f7941d7f608c95782..0000000000000000000000000000000000000000 --- a/package/base-files/files/etc/rc.button/reset +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -. /lib/functions.sh - -OVERLAY="$( grep ' /overlay ' /proc/mounts )" - -case "$ACTION" in -pressed) - [ -z "$OVERLAY" ] && return 0 - - return 5 -;; -timeout) - . /etc/diag.sh - set_state failsafe -;; -released) - if [ "$SEEN" -lt 1 ] - then - echo "REBOOT" > /dev/console - sync - reboot - elif [ "$SEEN" -gt 5 -a -n "$OVERLAY" ] - then - echo "FACTORY RESET" > /dev/console - jffs2reset -y && reboot & - fi -;; -esac - -return 0