0006-base-files-disable-reset-button-handling.patch 738 B

1234567891011121314151617181920212223242526272829303132
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Sat, 21 Mar 2015 16:40:52 +0100
  3. Subject: base-files: disable reset button handling
  4. This conflicts with our reset button usage.
  5. diff --git a/package/base-files/files/etc/rc.button/reset b/package/base-files/files/etc/rc.button/reset
  6. deleted file mode 100755
  7. index 3e24146..0000000
  8. --- a/package/base-files/files/etc/rc.button/reset
  9. +++ /dev/null
  10. @@ -1,20 +0,0 @@
  11. -#!/bin/sh
  12. -
  13. -[ "${ACTION}" = "released" ] || exit 0
  14. -
  15. -. /lib/functions.sh
  16. -
  17. -logger "$BUTTON pressed for $SEEN seconds"
  18. -
  19. -if [ "$SEEN" -lt 1 ]
  20. -then
  21. - echo "REBOOT" > /dev/console
  22. - sync
  23. - reboot
  24. -elif [ "$SEEN" -gt 5 ]
  25. -then
  26. - echo "FACTORY RESET" > /dev/console
  27. - jffs2reset -y && reboot &
  28. -fi
  29. -
  30. -return 0