From b2316e705cf742ac9e811d3c3e200a8f21547bab Mon Sep 17 00:00:00 2001 From: Keine_Ahnung Date: Tue, 5 Feb 2013 20:09:41 +0100 Subject: Added switch_tv_light example, fixed filenames and attributes --- script/uactivity/activity/-20-switch_tv | 38 --------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 script/uactivity/activity/-20-switch_tv (limited to 'script/uactivity/activity/-20-switch_tv') diff --git a/script/uactivity/activity/-20-switch_tv b/script/uactivity/activity/-20-switch_tv deleted file mode 100644 index c9bbf57..0000000 --- a/script/uactivity/activity/-20-switch_tv +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -switch_tv(){ - if [ "${1}" = "on" ]; then - # yaUSBir sometimes ignore the first command, send an existing dummy ir code - irsend -d /var/run/lirc/ya_usbir SEND_ONCE TV_DUMMY dummy - sleep 0.5 - irsend -d /var/run/lirc/ya_usbir SEND_ONCE TV_REMOTE on - else - # yaUSBir sometimes ignore the first command, send an existing dummy ir code - irsend -d /var/run/lirc/ya_usbir SEND_ONCE TV_DUMMY dummy - sleep 0.5 - irsend -d /var/run/lirc/ya_usbir SEND_ONCE TV_REMOTE off - fi -} - - - -case "${1}" in - startup) - true - ;; - started) - [ "${2}" = "true" ] && switch_tv on - ;; - shutdown) - switch_tv off - ;; - running) - if [ "${2}" = "true" ]; then - switch_tv on - else - switch_tv off - fi - ;; -esac - -exit 0 -- cgit v1.2.3