##### /etc/hotplug.d/button/01-wifitoogle if [ "$BUTTON" = "reset" ] ; then if [ "$ACTION" = "released" ] ; then echo "Pressed" > /tmp/button.txt fi fi