<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Just to plug slackware and what Slackware calls rc.local</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">< /etc/rc.d/rc.local ></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Apparantly you can create a < rc.local_shutdown > script in the same folder. this is run on shutdown.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Tuesday 20 May 2014 15:02:56 Stephen Franks wrote:<br /></p>
<p style=" margin-top:12px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">That was fast and helpful. <img src="cid:1437918201@KDE" /> Thanks!</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">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.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Stephen</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On 20 May 2014 14:44, John Leach <<a href="mailto:john@johnleach.co.uk"><span style=" text-decoration: underline; color:#0057ae;">john@johnleach.co.uk</span></a>> wrote:<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:46px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On 20/05/14 14:33, Stephen Franks wrote:<br />> I'm building a MythTV front-end using an Intel NUC. There is a known<br />> problem with the infra-red receiver, for which Intel's advice<br />> (<a href="http://www.intel.com/support/motherboards/desktop/sb/CS-034779.htm"><span style=" text-decoration: underline; color:#0057ae;">http://www.intel.com/support/motherboards/desktop/sb/CS-034779.htm</span></a>) is<br />> to make a script containing:<br />><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">>   * #bin/sh<br />>   * modprobe -r nuvoton-cir<br />>   * echo "auto" > "/sys/bus/acpi/devices/NTN0530:00/physical_node/resources"<br />>   * modprobe nuvoton-cir<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:46px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">><br />> Entering these commands as root seems to get the IR working better (the<br />> key mappings are wrong, but I can play with those).<br />><br />> Now for the bit I don't understand. Intel's advice is to name this<br />> script autostart.sh, and put it in the .config directory. OK, but as<br />> which user? Since the script only works when run as root, I guess it<br />> must go into root's .config directory. But would that only run when root<br />> logs in? Surely it needs to run when the computer starts up?<br />><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> Or to put it another way, where is the best place to put these /modprobe<br />> /commands? Should it not go somewhere in /etc/init.d?<br /><br />hi Stephen,<br /><br />sticking the commands in /etc/rc.local is probably the simplest - most<br />distros should have that file and it gets executed "at the end of each<br />multiuser runlevel" (so on boot :)<br /><br />John.<br /><br /><br />_______________________________________________<br />Wylug-help mailing list<br /><a href="mailto:Wylug-help@wylug.org.uk"><span style=" text-decoration: underline; color:#0057ae;">Wylug-help@wylug.org.uk</span></a><br /><a href="https://mailman.lug.org.uk/mailman/listinfo/wylug-help"><span style=" text-decoration: underline; color:#0057ae;">https://mailman.lug.org.uk/mailman/listinfo/wylug-help</span></a><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">-- </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Darren Drapkin</p></body></html>