diff --git a/bin/xautologin b/bin/xautologin index 582a471..78b0534 100644 --- a/bin/xautologin +++ b/bin/xautologin @@ -21,6 +21,8 @@ TTYNUM=${2:-7} DISPLAYNUM=${3:-\:0} MAINLOOP=1 +XDMCMD=/usr/share/calculate/xdm/xdm + # write pid for init.d/xdm (detect X for this xautologin) echo $BASHPID >/var/run/bash.pid @@ -94,7 +96,10 @@ do XPID=$! if waitX ${DISPLAYNUM} then - env USER=${XUSER} /usr/share/calculate/xdm/xdm --login || break + if [[ -e ${XDMCMD} ]] + then + env USER=${XUSER} ${XDMCMD} --login || break + fi # write pam enviroment for pam_ck_connector cat >/home/${XUSER}/.pam_environment <