aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/fndSession
blob: 39f8c311012dcdae4c3c79ea9a2cb0040674d56f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# fndSession (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>
## FindSession for kdm and gdm.

[ -x /usr/sbin/chksession ] || {
    echo "I can't find /usr/sbin/chksession"
    echo "check your installation"
    exit 1
}

if [ -e /usr/share/config/kdm/kdmrc ];then
    /usr/sbin/chksession -k
fi

if [ -d /etc/X11/dm/Sessions ];then
    /usr/sbin/chksession -g
fi