Oliver Grawert wrote:

> hi,
> Am Samstag, den 29.11.2008, 21:05 +0200 schrieb Anton Vaaranmaa:
>> Question is: how do I power off harddisks for these two thin clients 
>> only? (It would not hurt either to know how to power manage things like 
>> monitors..)
> i would suggest creating an initscript in your chroot, make it read an
> lst.conf variable (all variables in lts.conf are exported globally, so
> you should easily be able to read them if your script runs after the
> ltsp-client-setup initscript) ...
> just make it fire and set the necessary hdparm values if you detect a
> certain lts.conf variable ... then set this variable for the MAC
> adresses of the two clients in lts.conf ... 
> 
> (easiest might be to (ab)use /etc/rc.local for this)
> 
> ciao
>       oli

Hi,

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/.

-- 
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