diff options
author | Cecil <knoppmyth@gmail.com> | 2011-07-24 02:01:30 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2011-07-24 02:01:30 (GMT) |
commit | d074c3b2181188446d626fa473ee64c7dc66bc57 (patch) | |
tree | f9cb7d9ecd273a4a3367787a04932573c5dec2c7 /abs/core/lirc-utils/lircd | |
parent | 5349364d8cb03780a54d04222a43e7f626e03669 (diff) | |
download | linhes_pkgbuild-d074c3b2181188446d626fa473ee64c7dc66bc57.zip linhes_pkgbuild-d074c3b2181188446d626fa473ee64c7dc66bc57.tar.gz linhes_pkgbuild-d074c3b2181188446d626fa473ee64c7dc66bc57.tar.bz2 |
lirc-utils:Removed as lirc is now a meta-package that contains lirc and lirc-utils.
Diffstat (limited to 'abs/core/lirc-utils/lircd')
-rwxr-xr-x | abs/core/lirc-utils/lircd | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/abs/core/lirc-utils/lircd b/abs/core/lirc-utils/lircd deleted file mode 100755 index e9739b3..0000000 --- a/abs/core/lirc-utils/lircd +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions -. /etc/conf.d/lircd.conf - -PID=$(pidof -o %PPID /usr/sbin/lircd) -LIRCD_SYMLINKFILE=/dev/lircd -LIRCD_SOCKET=/var/run/lirc/lircd -case "$1" in - start) - stat_busy "Starting LIRC Daemon" - [ ! -d /var/run/lirc ] && install -d /var/run/lirc &>/dev/null - rm -f $LIRCD_SOCKET && ln -s $LIRCD_SOCKET $LIRCD_SYMLINKFILE - if [ $? -ne 0 ]; then - stat_fail - exit 0 - fi - [ -n "$LIRC_DRIVER" ] && LIRC_EXTRAOPTS="-H $LIRC_DRIVER $LIRC_EXTRAOPTS" - [ -z "$PID" ] && - if [ -n "$LIRC_DEVICE" ] ; then - eval /usr/sbin/lircd -d "$LIRC_DEVICE" $LIRC_EXTRAOPTS $LIRC_CONFIGFILE - else - /usr/sbin/lircd $LIRC_EXTRAOPTS $LIRC_CONFIGFILE - fi - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon lircd - stat_done - fi - ;; - stop) - stat_busy "Stopping LIRC Daemon" - rm -f $LIRCD_SYMLINKFILE - [ ! -z "$PID" ] && kill $PID &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon lircd - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 start|stop|restart" -esac -exit 0 |