Bug 5771 - tl-latest-client-thinstation.tar.gz init script
Summary: tl-latest-client-thinstation.tar.gz init script
Status: CLOSED DUPLICATE of bug 5574
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Client platforms (show other bugs)
Version: 4.5.0
Hardware: PC Linux
: P2 Normal
Target Milestone: 4.6.0
Assignee: Peter Åstrand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-15 11:33 CET by Manuel Oetiker
Modified: 2016-06-15 13:43 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Manuel Oetiker 2016-01-15 11:33:50 CET
Hi

I tried to use the thinlinc package in thinstation and had to change
the init script to work with version 5.4:

cheers Manuel


--- thinlinc.init	2015-10-30 10:35:22.000000000 +0100
+++ thinlinc.init~	2016-01-15 11:28:48.275233966 +0100
@@ -9,17 +9,14 @@
 case "$1" in 
 init)
 
+  HOME=/etc/skel
+
   # If the file already exists, it was probably downloaded by
   # /etc/init.d/network on Thinstation 2.2 or later. 
   #
   # From now on, we don't support ThinStation 2.1 or older with
   # automatic download of known_hosts.
 
-  if [ -e ${HOME}/.ssh/known_hosts ] ; then
-    mkdir -p ${HOME}/.thinlinc
-    cp -a ${HOME}/.ssh/known_hosts ${HOME}/.thinlinc/
-  fi
-
   let x=0
   while [ -n "`eval echo '$SESSION_'$x'_TYPE'`" ] ; do  
       TLTYPE=`eval echo '$SESSION_'$x'_TYPE'`
Comment 1 Manuel Oetiker 2016-01-15 15:04:51 CET
I just realized, that the part with the copy is needed. 

so we just need the to add

HOME=/etc/skel
Comment 2 Peter Åstrand cendio 2016-01-19 10:41:11 CET

*** This bug has been marked as a duplicate of bug 5574 ***

Note You need to log in before you can comment on or make changes to this bug.