[Wylug-help] Where to put some extra startup commands
Stephen Franks
stephen at franks.org.uk
Tue May 20 14:03:39 UTC 2014
That was fast and helpful. [?] Thanks!
Oh, and sorry I forgot to mention which distro I'm using (Ubuntu 14), I
thought I had said but now I look it isn't there.
Stephen
On 20 May 2014 14:44, John Leach <john at johnleach.co.uk> wrote:
> 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.
>
>
> _______________________________________________
> Wylug-help mailing list
> Wylug-help at wylug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/wylug-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/wylug-help/attachments/20140520/1387bec4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 330.gif
Type: image/gif
Size: 96 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/wylug-help/attachments/20140520/1387bec4/attachment.gif>
More information about the Wylug-help
mailing list