Xprt
dick hoogendijk
dick at nagual.st
Tue Sep 20 12:17:03 PDT 2005
On 20 Sep 2005 14:56:48 -0400
Lowell Gilbert <freebsd-questions-local at be-well.ilk.org> wrote:
> dick hoogendijk <dick at nagual.st> writes:
>
> > Yesterday I upgraded my xorg-printserver. Afterwards my Xprt would
> > not start. Looking at /usr/X11R6/etc/rc.d/xprint.sh I did not have a
> > POSIX-shell. <???> Hmmm.. seems you need ksh or bash for xprint all
> > of a sudden. A warning would have been nice.
>
> That script only requires a POSIX shell, and our standard /bin/sh
> should work fine. I just tried it, and it does work for me.
That's what I expected. But if you look into the script you'll
see#!/bin/sh
############################################################################
# Force use of a POSIX conformant sh
[ "$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 --norc --noprofile "$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 --norc
--noprofile "$0" posix_sh_forced "$@" if [ "$1" !=
"posix_sh_forced" ] ; then echo "${0}: ## FATAL ERROR: No POSIX-shell
found." 1>&2 exit 1 fi
#######################################
As you can see, /bin/sh is NOT mentioned (and thus 'not found')
Only ksh and bash seem to be supported. Strange..
Sure I can alter the startup script, but I'm not supposed to do this,
am I?
--
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.11-stable ++ FreeBSD 5.4
+ Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja
More information about the freebsd-questions
mailing list