2015-03-21 15:41:37 +00:00
|
|
|
From: Matthias Schiffer <mschiffer@universe-factory.net>
|
|
|
|
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
|
2016-12-20 00:09:53 +00:00
|
|
|
index 3e241460efbb08abaa775c1a7843b5fa3e237d44..0000000000000000000000000000000000000000
|
2015-03-21 15:41:37 +00:00
|
|
|
--- a/package/base-files/files/etc/rc.button/reset
|
|
|
|
+++ /dev/null
|
2015-08-13 18:27:07 +00:00
|
|
|
@@ -1,20 +0,0 @@
|
2015-03-21 15:41:37 +00:00
|
|
|
-#!/bin/sh
|
|
|
|
-
|
|
|
|
-[ "${ACTION}" = "released" ] || exit 0
|
|
|
|
-
|
|
|
|
-. /lib/functions.sh
|
|
|
|
-
|
|
|
|
-logger "$BUTTON pressed for $SEEN seconds"
|
|
|
|
-
|
|
|
|
-if [ "$SEEN" -lt 1 ]
|
|
|
|
-then
|
|
|
|
- echo "REBOOT" > /dev/console
|
|
|
|
- sync
|
|
|
|
- reboot
|
|
|
|
-elif [ "$SEEN" -gt 5 ]
|
|
|
|
-then
|
|
|
|
- echo "FACTORY RESET" > /dev/console
|
|
|
|
- jffs2reset -y && reboot &
|
|
|
|
-fi
|
2015-08-13 18:27:07 +00:00
|
|
|
-
|
|
|
|
-return 0
|