summaryrefslogtreecommitdiff
path: root/script/uactivity/key/#10-syslog_demo
diff options
context:
space:
mode:
authorKeine_Ahnung <dirk-vdr@gmx.de>2013-05-01 20:17:15 +0200
committerKeine_Ahnung <dirk-vdr@gmx.de>2013-05-01 20:17:15 +0200
commitd0ee69265cf9bb315f0481d643413b80f80415a8 (patch)
treed1b2d0d5c8fb247f60c4850b5e7749c6f2a923c9 /script/uactivity/key/#10-syslog_demo
parent0cd3cd041ce4977cf0c21a83464b5066c1766e2e (diff)
downloadvdr-plugin-uactivity-master.tar.gz
vdr-plugin-uactivity-master.tar.bz2
changed PLUGIN_UACTIVITY_COMMANDHEADmaster
Renamed Run to uactivityRun k_Setup to kNone Extra Error check for #20-yaUSBir_watchdog Changed activity script parameters from command line to enviromet (key and watchdog scripts also changed) New info value "UACTIVITY_INFO_VIDEODIR" Fixed missing Symbol Error from commit e01109af
Diffstat (limited to 'script/uactivity/key/#10-syslog_demo')
-rwxr-xr-xscript/uactivity/key/#10-syslog_demo34
1 files changed, 21 insertions, 13 deletions
diff --git a/script/uactivity/key/#10-syslog_demo b/script/uactivity/key/#10-syslog_demo
index ee794a7..767ee55 100755
--- a/script/uactivity/key/#10-syslog_demo
+++ b/script/uactivity/key/#10-syslog_demo
@@ -1,29 +1,37 @@
#!/bin/sh
-case "${1}" in
+case "${UACTIVITY_ORGIN}" in
startup)
logger -t "uactivity [key/$(basename ${0})]" "key starting up"
- logger -t "uactivity [key/$(basename ${0})]" "ConfigDirectory: ${3}"
- logger -t "uactivity [key/$(basename ${0})]" "CacheDirectory: ${4}"
- logger -t "uactivity [key/$(basename ${0})]" "ResourceDirectory: ${5}"
+ logger -t "uactivity [key/$(basename ${0})]" "ConfigDirectory: ${UACTIVITY_CONFIGDIRECTORY}"
+ logger -t "uactivity [key/$(basename ${0})]" "CacheDirectory: ${UACTIVITY_CACHEDIRECTORY}"
+ logger -t "uactivity [key/$(basename ${0})]" "ResourceDirectory: ${UACTIVITY_RESOURCEDIRECTORY}"
+ logger -t "uactivity [key/$(basename ${0})]" "Key: ${UACTIVITY_INFO_KEY}"
+ logger -t "uactivity [key/$(basename ${0})]" "VideoDirectory: ${UACTIVITY_INFO_VIDEODIR}"
;;
started)
logger -t "uactivity [key/$(basename ${0})]" "key started"
- logger -t "uactivity [key/$(basename ${0})]" "ConfigDirectory: ${3}"
- logger -t "uactivity [key/$(basename ${0})]" "CacheDirectory: ${4}"
- logger -t "uactivity [key/$(basename ${0})]" "ResourceDirectory: ${5}"
+ logger -t "uactivity [key/$(basename ${0})]" "ConfigDirectory: ${UACTIVITY_CONFIGDIRECTORY}"
+ logger -t "uactivity [key/$(basename ${0})]" "CacheDirectory: ${UACTIVITY_CACHEDIRECTORY}"
+ logger -t "uactivity [key/$(basename ${0})]" "ResourceDirectory: ${UACTIVITY_RESOURCEDIRECTORY}"
+ logger -t "uactivity [key/$(basename ${0})]" "Key: ${UACTIVITY_INFO_KEY}"
+ logger -t "uactivity [key/$(basename ${0})]" "VideoDirectory: ${UACTIVITY_INFO_VIDEODIR}"
;;
shutdown)
logger -t "uactivity [key/$(basename ${0})]" "key shutting down"
- logger -t "uactivity [key/$(basename ${0})]" "ConfigDirectory: ${3}"
- logger -t "uactivity [key/$(basename ${0})]" "CacheDirectory: ${4}"
- logger -t "uactivity [key/$(basename ${0})]" "ResourceDirectory: ${5}"
+ logger -t "uactivity [key/$(basename ${0})]" "ConfigDirectory: ${UACTIVITY_CONFIGDIRECTORY}"
+ logger -t "uactivity [key/$(basename ${0})]" "CacheDirectory: ${UACTIVITY_CACHEDIRECTORY}"
+ logger -t "uactivity [key/$(basename ${0})]" "ResourceDirectory: ${UACTIVITY_RESOURCEDIRECTORY}"
+ logger -t "uactivity [key/$(basename ${0})]" "Key: ${UACTIVITY_INFO_KEY}"
+ logger -t "uactivity [key/$(basename ${0})]" "VideoDirectory: ${UACTIVITY_INFO_VIDEODIR}"
;;
running)
logger -t "uactivity [key/$(basename ${0})]" "key \"${2}\" pressed"
- logger -t "uactivity [key/$(basename ${0})]" "ConfigDirectory: ${3}"
- logger -t "uactivity [key/$(basename ${0})]" "CacheDirectory: ${4}"
- logger -t "uactivity [key/$(basename ${0})]" "ResourceDirectory: ${5}"
+ logger -t "uactivity [key/$(basename ${0})]" "ConfigDirectory: ${UACTIVITY_CONFIGDIRECTORY}"
+ logger -t "uactivity [key/$(basename ${0})]" "CacheDirectory: ${UACTIVITY_CACHEDIRECTORY}"
+ logger -t "uactivity [key/$(basename ${0})]" "ResourceDirectory: ${UACTIVITY_RESOURCEDIRECTORY}"
+ logger -t "uactivity [key/$(basename ${0})]" "Key: ${UACTIVITY_INFO_KEY}"
+ logger -t "uactivity [key/$(basename ${0})]" "VideoDirectory: ${UACTIVITY_INFO_VIDEODIR}"
;;
esac