openwrt/package/base-files/files/etc/rc.button/failsafe

6 lines
87 B
Bash
Executable File

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