2010-05-16 10:11:09 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
# Copyright (C) 2009-2010 OpenELEC.tv
|
|
|
|
|
# http://www.openelec.tv
|
|
|
|
|
#
|
|
|
|
|
# This Program is free software; you can redistribute it and/or modify
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
|
# any later version.
|
|
|
|
|
#
|
|
|
|
|
# This Program is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
|
|
|
|
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
# http://www.gnu.org/copyleft/gpl.html
|
|
|
|
|
################################################################################
|
|
|
|
|
|
2010-04-28 20:41:48 +02:00
|
|
|
# start the LIRC daemon
|
|
|
|
|
#
|
|
|
|
|
# runlevels: openelec, textmode
|
|
|
|
|
|
2010-05-16 11:05:12 +02:00
|
|
|
. /etc/profile
|
|
|
|
|
|
2010-04-28 20:41:48 +02:00
|
|
|
[ -f /storage/.config/remote.conf ] && . /storage/.config/remote.conf
|
|
|
|
|
|
|
|
|
|
if [ "$REMOTE_BACKEND" = "lirc" ]; then
|
|
|
|
|
|
|
|
|
|
progress "Starting LIRC daemon"
|
|
|
|
|
|
|
|
|
|
LIRC_DRIVER="default"
|
|
|
|
|
LIRC_DEVICE="/dev/lirc0"
|
|
|
|
|
LIRC_OUTPUT="/dev/lircd"
|
|
|
|
|
|
|
|
|
|
$IONICE mkdir -p /var/run/lirc
|
|
|
|
|
lircd --driver=$LIRC_DRIVER --device=$LIRC_DEVICE --output=$LIRC_OUTPUT
|
|
|
|
|
|
|
|
|
|
fi
|