Package: ltsp-client
Version: 0.58debian4

When booting the LTSP client using dash as /bin/sh, I see this error
message:

  /usr/lib/ltsp/ltsp_functions: 36: Syntax error: Bad substitution

I'm trying to see if dash might speed up the boot when compared to the
normal bash run.

The problematic code is in reg_info(), the ${!VAR}:

  reg_info(){
    VAR=$1
    [ -d /tmp/info ] || mkdir /tmp/info
    echo ${!VAR} >/tmp/info/${VAR}
  }

The quick fix is to replace /bin/sh with /bin/bash in
/etc/init.d/ltsp-client and /etc/init.d/ltsp-client-setup.  A better
fix is to rewrite the code to work with dash.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to