Index: xc/programs/Xserver/Xprint/etc/init.d/xprint =================================================================== RCS file: /cvs/xprint/xprint/src/xprint_main/xc/programs/Xserver/Xprint/etc/init.d/xprint,v retrieving revision 1.48 diff -u -2 -0 -r1.48 xprint --- a/xc/programs/Xserver/Xprint/etc/init.d/xprint 17 May 2004 03:32:43 -0000 1.48 +++ b/xc/programs/Xserver/Xprint/etc/init.d/xprint 26 May 2004 01:14:45 -0000 @@ -136,40 +136,43 @@ } ############################################################################ # Force use of a POSIX conformant sh # (Solaris /sbin/sh is plain Bourne shell) [ "$1" != "posix_sh_forced" -a -x /bin/ksh ] && exec /bin/ksh "$0" posix_sh_forced "$@" [ "$1" != "posix_sh_forced" -a -x /bin/bash ] && exec /bin/bash "$0" posix_sh_forced "$@" [ "$1" != "posix_sh_forced" -a -x /usr/local/bin/ksh ] && exec /usr/local/bin/ksh "$0" posix_sh_forced "$@" [ "$1" != "posix_sh_forced" -a -x /usr/local/bin/bash ] && exec /usr/local/bin/bash "$0" posix_sh_forced "$@" if [ "$1" != "posix_sh_forced" ] ; then echo "${0}: ## FATAL ERROR: No POSIX-shell found." 1>&2 exit 1 fi shift # Drop "posix_sh_forced" # debug #set -x +# Change current dir to a location which is writeable by everyone +cd /tmp + # Set search path for commands export PATH=/usr/bin:/bin:/usr/sbin:/sbin if [ "$(uname -s)" = "SunOS" ] ; then export PATH=/usr/xpg4/bin:${PATH} fi ## Try to figure-out where X11 was installed case "$(uname -s)" in 'SunOS') XPROJECTROOT=/usr/openwin export OPENWINHOME=/usr/openwin ;; 'AIX') XPROJECTROOT=/usr/lpp/X11 ;; *) [ -d /usr/X11/bin ] && XPROJECTROOT=/usr/X11 [ -d /usr/X11R6/bin ] && XPROJECTROOT=/usr/X11R6 ;; esac