From b3be7d3a8c93587533d263b0eeab90b81fc8f7f2 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Fri, 23 Jun 2023 19:40:44 -0700 Subject: [PATCH] Re-enable AREDN's reset button behaviour (#879) --- patches/100-remove-rcbutton-reset.patch | 34 +++++++++++++++++++++++++ patches/series | 1 + 2 files changed, 35 insertions(+) create mode 100755 patches/100-remove-rcbutton-reset.patch diff --git a/patches/100-remove-rcbutton-reset.patch b/patches/100-remove-rcbutton-reset.patch new file mode 100755 index 00000000..5fd9f547 --- /dev/null +++ b/patches/100-remove-rcbutton-reset.patch @@ -0,0 +1,34 @@ +--- 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" -ge 5 -a -n "$OVERLAY" ] +- then +- echo "FACTORY RESET" > /dev/console +- jffs2reset -y && reboot & +- fi +-;; +-esac +- +-return 0 diff --git a/patches/series b/patches/series index ac8a6ba6..1db19bf0 100644 --- a/patches/series +++ b/patches/series @@ -2,6 +2,7 @@ 001-ath79-cpe220v3-sysupgrade-supported.patch 001-ath79-reverse-wpad-basic-wolfssl.patch 006-rocket-m-flash-fix.patch +100-remove-rcbutton-reset.patch 701-ath9k-reset.patch 701-extended-spectrum.patch 702-enable-country-hx.patch