alix-switch 211 B

123456789101112131415
  1. #!/bin/sh
  2. # launched by alix-switchd in case of button event
  3. case "$1" in
  4. on)
  5. echo "alix-switch: on"
  6. ;;
  7. off)
  8. echo "alix-switch: off"
  9. ;;
  10. *)
  11. echo "Usage: $0 {on|off}"
  12. ;;
  13. esac
  14. exit 0