|
|
@ -90,7 +90,12 @@ EOF
|
|
|
|
# run script start xsession
|
|
|
|
# run script start xsession
|
|
|
|
source /usr/bin/startx' &
|
|
|
|
source /usr/bin/startx' &
|
|
|
|
# wait for right work trap SIGTERM
|
|
|
|
# wait for right work trap SIGTERM
|
|
|
|
wait $!
|
|
|
|
XSESSIONPID=$!
|
|
|
|
|
|
|
|
while [[ -d /proc/$XSESSIONPID ]] &&
|
|
|
|
|
|
|
|
[[ "$(rc-status -r)" != "shutdown" ]]
|
|
|
|
|
|
|
|
do
|
|
|
|
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
done
|
|
|
|
# remove user from utmp and wtmp
|
|
|
|
# remove user from utmp and wtmp
|
|
|
|
sessreg -d -l ${DISPLAYNUM} ${XUSER}
|
|
|
|
sessreg -d -l ${DISPLAYNUM} ${XUSER}
|
|
|
|
# perform logout scripts for user
|
|
|
|
# perform logout scripts for user
|
|
|
|