William,
Yes, there is a way.
Anything you pass on the kernel commandline that doesn't get sucked up
by the kernel will be passed on to the /sbin/init program, and it will
become available to any 'init' scripts that are specified in the inittab
file.
So, if you are using Etherboot, you can set option-128 and 129 to pass
your options 'CLIENTID=A', and then you can see that in the rc scripts,
like 'rc.sysinit' as $CLIENTID.
If you are using PXE, then you'd have to create a separate PXE config
file for each workstation.
There's more info about passing kernel commandlines on the LTSP wiki.
The URL is:
http://wiki.ltsp.org/twiki/bin/view/Ltsp/KernelOptions
BUT, I'd strongly suggest you look at using something that is already
unique per client, like the hostname. With that, you don't have to pass
anything additional on the kernel cmdline.
Jim McQuillan
[EMAIL PROTECTED]
William Man wrote:
Hi,
Is there any way to pass parameters into the ltsp clients, for example
i want to generate a file called /etc/client.conf during startup,
containing:
clientid = A
or, something similar like environment variables $CLIENTID="A"
W
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_____________________________________________________________________
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
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_____________________________________________________________________
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