On a particular media directer I hav constructed the basic serial port infrared receiver and added a couple of remote controls. After noticing errors on startup of the lirc device and checking the log it was having problems accessing the serial port.
A bit of googling reveals a solution. I needed to free the serial port before modprobing the lirc_serial driver. After that the lirc device fixes itself and the remotes work as expected.
The command to free the serial port is;
setserial /dev/ttyS0 uart none
At the moment I have to go to a console window and execute this command after the machine boots. Obviously this is a pain when the machine gets rebooted.
I have tried various rc scripts and creating serial.conf files to get this to run at startup. All with no success.
Has anyone encountered the same problem and solved it so that it works after a reboot?
same problem here - I also need to run few scripts to setup my ADSL connection. I've described it here
but it would be nice to have some empty, user editable script that runs on boot, poweroff or restart, so user can put in commands he needs (it would be best that this would be setting over web-admin that would stay permanently in database)...