|
RE: TS hostname from file and thinstation .runtime.: msg#00109network.thinstation.devel
Hi, Slightly confused, you say... there is a ..... which sounds like there already is... do you mean here is a ..... in which case this is a patch. Correct? Cheers Miles -----Original Message----- From: Dariusz PAWLAK [mailto:d.pawlak-nM1+KzKRSRhmR6Xm/wNWPw@xxxxxxxxxxxxxxxx] Sent: Wednesday, 23 June 2004 09:39 p.m. To: Thinstation-Developer (E-mail) Subject: [Thinstation-developer] TS hostname from file and thinstation.runtime. hi! there is a function for /etc/rc.d/network which reads filename from file located in /tmnp/mnt/duasc0/part1/hostname and set these name as hostname for TS. It should be call before get_hostname function. # # function start # get_hostname_from_file() { . $TS_GLOBAL FILE_WITH_HOSTNAME="/tmp/mnt/disc0/part1/hostname" #FILE_WITH_HOSTNAME="./hostname" echo -e "\tReading hostname from file..." if [ -r $FILE_WITH_HOSTNAME ] ; then HOSTNAME_FROM_FILE=`cat $FILE_WITH_HOSTNAME` if [ -z $HOSTNAME_FROM_FILE ] ; then echo -e "\t\t...file exists but is empty. Not set." else echo -e "\t\t...setting hostname from file to: $HOSTNAME_FROM_FILE" echo "CLIENT_NAME=$HOSTNAME_FROM_FILE" >> $TS_RUNTIME fi else echo -e "\t\t...there is no file with hostname value." fi } # # function end # In /etc/rc.d/network there is a few places where CLIENT_NAME variable is writing to $TS_RUNTIME (/tmp/etc/thinstation.runtime). I think, it should be only one place where the CLEINT_NAME is set in this file. Is anybody who knows which CLIENT_NAME variable in thinstation.runtime is valid? -- Dariusz PAWLAK ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Thinstation-developer mailing list Thinstation-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/thinstation-developer ================================================== Attention: The information contained in this message and/or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by person or entities other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from your system and destroy any copies. =================================================== |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: TS via VPN slow? - NX Protocol?: 00109, Miles Roper |
|---|---|
| Next by Date: | Re: TS via VPN slow? - NX Protocol?: 00109, Kai Schmidt |
| Previous by Thread: | TS via VPN slow? - NX Protocol?i: 00109, Volker Tanger |
| Next by Thread: | serial printer: 00109, Alexandre BERNASSON - ACCORD Informatique |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |