Browse Source

Исправлен скрипт автовхода пользователя в Xorg сервере сеанс

master-3.5 3.5.3.1
parent
commit
ecd210d899
  1. 12
      bin/xautologin

12
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 <<EOF
CKCON_DISPLAY_DEVICE=
@ -132,7 +137,10 @@ source /usr/bin/startx' &
then
sleep $WAITRELOGIN
fi
env USER=${XUSER} /usr/share/calculate/xdm/xdm --logout
if [[ -e ${XDMCMD} ]]
then
env USER=${XUSER} ${XDMCMD} --logout
fi
fi
[[ -n $XPID ]] && kill $XPID
wait $XPID

Loading…
Cancel
Save