--- /etc/X11/xinit/xinitrc.d/0100.SUNWut.orig 2008-05-15 20:28:09.000000000 +0200 +++ /etc/X11/xinit/xinitrc.d/0100.SUNWut 2008-05-15 20:23:31.000000000 +0200 @@ -51,7 +51,7 @@ # Set the LD_PRELOAD variable for Linux OS=`uname -s` - if [[ $OS == "Linux" ]]; then + if [ "$OS" = "Linux" ]; then # replicate custom and default code # from /etc/X11/gdm/Xsession # BEFORE we modify command @@ -166,9 +166,9 @@ else KIOSKSTATUS=1 fi - if [[ $SUN_SUNRAY_TOKEN != auth.* \ - && -n "${SUN_SUNRAY_UTXLOCK_PREF-foo}" \ - && $KIOSKSTATUS -ne 0 ]] + if [ "`echo $SUN_SUNRAY_TOKEN | sed -e 's/\..*//'`" != "auth" -a \ + -n "${SUN_SUNRAY_UTXLOCK_PREF-foo}" -a \ + $KIOSKSTATUS -ne 0 ] then $ADMIN_BIN/utaction -i -d $ADMIN_BIN/utxlock & fi