mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
21 lines
662 B
Plaintext
Executable File
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 |