#!/bin/sh
killall eventlircd
setserial /dev/ttyS0 uart unknown
modprobe lirc_serial
while [ ! "$(pidof lircd)" ]; do
   sleep 1
done
killall lircd
lircd --driver=default --device=/dev/lirc0 /storage/.config/lircd.conf
