openwrt/package/base-files/files/etc/rc.button/failsafe
Luka Perkov 1df0179b28 base-files: don't enter failsafe if triggered by switch
Fixes failsafe issues with switches after r38725.

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 38770
2013-11-11 23:34:11 +00:00

4 lines
77 B
Bash
Executable File

#!/bin/sh
[ "${TYPE}" = "switch" ] || echo ${BUTTON} > /tmp/failsafe_button