The aim is to use LIRC with lirc_serial module. To get it these operations must take place in a given order:
- udev must name a serial port - serial port must be freed from (built in) kernel serial driver with command 'setserial /dev/ttyS0 uart none' - lirc_serial driver must be loaded - lircd service must be started I have tried to add 'setserial ...' command into udev rule (RUN+=), add lirc_serial module to /etc/modules-load and enable lircd service - all these under systemd - but needed sequence of operation takes place randomly only. Currently I use custom script which I start manually after booting (and, of course, it does work always): ~ $ cat `which mylirc.sh` #!/bin/bash /usr/bin/systemctl stop lircd.service /usr/bin/rmmod lirc_serial /usr/bin/setserial /dev/ttyS0 uart none /sbin/modprobe lirc_serial /usr/bin/systemctl start lircd.service Can anybody suggest legal systemd/udev way to get needed sequence of operations? _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
