summaryrefslogtreecommitdiff
path: root/script/uactivity/key/-20-toggle_demo
diff options
context:
space:
mode:
Diffstat (limited to 'script/uactivity/key/-20-toggle_demo')
-rw-r--r--script/uactivity/key/-20-toggle_demo30
1 files changed, 0 insertions, 30 deletions
diff --git a/script/uactivity/key/-20-toggle_demo b/script/uactivity/key/-20-toggle_demo
deleted file mode 100644
index 3ec3cfb..0000000
--- a/script/uactivity/key/-20-toggle_demo
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-# do not use names starting with [0-9][0-9] for data files
-FLAG="${4}/key/flag.$(basename ${0})"
-
-case "${1}" in
- startup)
- # create flag directory (using cache directory)
- mkdir -p "${4}/key/"
- # delete flag (may leftover from previus vdr crash)
- # kepp the flag if toggle state should be keep over vdr sessions
- rm -f "${FLAG}"
- ;;
- running)
- # we are interested in Key "1"
- if [ "${2}" = "1" ]; then
- if [ -f "${FLAG}" ]; then
- # here we do our "off" action
- logger -t "uactivity [key/$(basename ${0})]" "$(basename ${0}) off"
- rm -f "${FLAG}"
- else
- # here we do our "on" action
- logger -t "uactivity [key/$(basename ${0})]" "$(basename ${0}) on"
- touch "${FLAG}"
- fi
- fi
- ;;
-esac
-
-exit 0