Vagrant Cascadian kirjoitti:

> On Mon, Dec 01, 2008 at 01:12:21PM +0200, Anton Vaaranmaa wrote:
>> Thank you very much for your advice. My scripting skills are very modest
>> to say at least, so I used the "RCFILE_01 = script" approach and in my
>> script I put the "hdparm -Y /dev/sda" command. I can target the
>> client(s)that need this by placing the RCFILE_01 variable under the
>> section for the individual client(s) in lts.conf. However when I tested
>> it I had no luck since the command did not get executed at all :-( When
>> I execute my script manually in a shell it works. I did remember to do
>> an "ltsp-update-image" after putting the script init /etc/init.d/.
> 
> what exactly is in RCFILE_01? 

/sbin/hdparm -Y /dev/sda > /tmp/hdparmexecuted.txt

> you need to use the full path:

> RCFILE_01 = /FULL/PATH/TO/script

Ok, that seamed to be the problem and now it is solved! Thank you! Funny
that the the documents¹ I have been reading do not mention that the full
path is needed. I assumed that custom rcfiles are specified just as
custom kernel modules.

¹) http://www.ltsp.org/~sbalneav/LTSPManual.html#modules-scripts
http://doc.ubuntu.com/edubuntu/edubuntu/handbook/C/customizing-thin-client.html
http://ltsp.mirrors.tds.net/pub/ltsp/docs/ltsp-4.1-en.html#AEN1201

> i.e. if you placed it in /etc/init.d, then RCFILE_01 = /etc/init.d/script
> 
> are other lts.conf values being respected? where is your lts.conf file?

Yes, they are respected. I have tested it by adding more shells for more
displays. My lts.conf file is in the chroot² and I remembered to execute
"ltsp-update-image" after any changes.

²) Because despite my efforts lts.conf is not transfered via tftp.
Probably could have to do with the fact that I have a different server
(CentOS 5) doing DHCP? The LTSP server (Ubuntu 8.04) does the TFTP part
and all the other required services. Does the the code for transferring
of the lts.conf assume that the DHCP server and TFTP server are in all
cases the same?

Thanks,

-- 
Anton

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to