[Wylug-help] Where to put some extra startup commands

Stephen Franks stephen at franks.org.uk
Tue May 20 13:34:38 UTC 2014


Hi,

I'm building a MythTV front-end using an Intel NUC. There is a known
problem with the infra-red receiver, for which Intel's advice (
http://www.intel.com/support/motherboards/desktop/sb/CS-034779.htm) is to
make a script containing:


   - #bin/sh
   - modprobe -r nuvoton-cir
   - echo "auto" >
   "/sys/bus/acpi/devices/NTN0530:00/physical_node/resources"
   - modprobe nuvoton-cir

Entering these commands as root seems to get the IR working better (the key
mappings are wrong, but I can play with those).

Now for the bit I don't understand. Intel's advice is to name this script
autostart.sh, and put it in the .config directory. OK, but as which user?
Since the script only works when run as root, I guess it must go into
root's .config directory. But would that only run when root logs in? Surely
it needs to run when the computer starts up?

Or to put it another way, where is the best place to put these
*modprobe *commands?
Should it not go somewhere in /etc/init.d?

As you can probably tell, I am not confident in my Linux skills, so all
advice is most welcome.

Thanks in advance,

Stephen Franks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/wylug-help/attachments/20140520/39118bc8/attachment.html>


More information about the Wylug-help mailing list