[Wylug-help] Where to put some extra startup commands
John Leach
john at johnleach.co.uk
Tue May 20 13:45:24 UTC 2014
On 20/05/14 14:33, Stephen Franks wrote:
> 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?
hi Stephen,
sticking the commands in /etc/rc.local is probably the simplest - most
distros should have that file and it gets executed "at the end of each
multiuser runlevel" (so on boot :)
John.
More information about the Wylug-help
mailing list