--- thinlinc.init.orig 2015-06-12 14:48:58.000000000 +0000 +++ thinlinc.init 2015-06-12 14:49:32.000000000 +0000 @@ -5,12 +5,13 @@ # For more information, see http://www.cendio.com . $TS_GLOBAL +HOME=/etc/skel -case "$1" in +case "$1" in init) # If the file already exists, it was probably downloaded by - # /etc/init.d/network on Thinstation 2.2 or later. + # /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. @@ -21,8 +22,8 @@ fi let x=0 - while [ -n "`eval echo '$SESSION_'$x'_TYPE'`" ] ; do - TLTYPE=`eval echo '$SESSION_'$x'_TYPE'` + while [ -n "`eval echo '$SESSION_'$x'_TYPE'`" ] ; do + TLTYPE=`eval echo '$SESSION_'$x'_TYPE'` if [ "`make_caps $TLTYPE`" = "THINLINC" ] ; then if [ ! -d $HOME/.thinlinc ] ; then mkdir $HOME/.thinlinc @@ -36,7 +37,7 @@ tlvalue=`eval echo $tlvalue` line=`echo $session | cut -f1 -d"="` tlparam=`echo $line | sed -e s/SESSION_${x}_THINLINC_CONFIG_//` - tlparam=`make_caps $tlparam` + tlparam=`make_caps $tlparam` echo "${tlparam} = ${tlvalue}" >> $TLCLIENTCONF done @@ -46,5 +47,3 @@ ;; esac - -