Files
Arch-R/packages/sysutils/remote/irserver/init.d/30_irserver
Stephan Raue 1ebc9e4650 irserver:
- fix init script (device must be the last)
- remove variables
2010-04-30 03:07:04 +02:00

21 lines
662 B
Plaintext
Executable File

# start the IRtrans daemon
#
# runlevels: openelec, textmode
[ -f /storage/.config/remote.conf ] && . /storage/.config/remote.conf
[ -f /storage/.config/lcd.conf ] && . /storage/.config/lcd.conf
if [ "$REMOTE_BACKEND" = "irtrans" -o "$LCD_DRIVER" = "irtrans" ]; then
progress "Starting IRtrans daemon"
[ ! "$REMOTE_BACKEND" = "irtrans" ] && \
IRSERVER_ARG="$IRSERVER_ARG -no_lirc" # dont run in lirc mode
[ "$DEBUG" = "yes" ] && \
IRSERVER_ARG="$IRSERVER_ARG -loglevel 4" # set loglevel in debugmode
irserver -logfile /var/log/irserver.log -pidfile /var/run/irserver.pid \
$IRSERVER_ARG -daemon /dev/irtrans0 > /dev/null 2>&1
fi