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

Darren Menachem Drapkin darren.drapkin at ntlworld.com
Tue May 20 14:12:58 UTC 2014


Just to plug slackware and what Slackware calls rc.local
< /etc/rc.d/rc.local >
Apparantly you can create a < rc.local_shutdown > script in the same 
folder. this is run on shutdown.
On Tuesday 20 May 2014 15:02:56 Stephen Franks wrote:


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[1]> 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[2]
) 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 - 
mostdistros should have that file and it gets executed "at the end of 
eachmultiuser runlevel" (so on boot :)

John.


_______________________________________________Wylug-help mailing list

Wylug-help at wylug.org.uk[3]
https://mailman.lug.org.uk/mailman/listinfo/wylug-help[4]





-- 
Darren Drapkin

--------
[1] mailto:john at johnleach.co.uk
[2] http://www.intel.com/support/motherboards/desktop/sb/CS-034779.htm
[3] mailto:Wylug-help at wylug.org.uk
[4] 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/c9af43ec/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 330.gif
Type: image/png
Size: 209 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/wylug-help/attachments/20140520/c9af43ec/attachment-0001.png>


More information about the Wylug-help mailing list