summaryrefslogtreecommitdiff
path: root/x11/kdebase4-runtime/files/kdm.in
blob: 06181ce3bbeb4b393e688e1af04f5d73ec45eb02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#
# $FreeBSD$

# some defs
GENKDMCONF=%%PREFIX%%/bin/genkdmconf
KDMCONFDIR=%%PREFIX%%/share/config/kdm

#Configure kdm if needed
if [ ! -r ${KDMCONFDIR}/kdmrc ]; then
	echo "Generating KDM configuration";
	${GENKDMCONF} --no-old --in ${KDMCONFDIR};
else
	echo "Updating KDM configuration";
	${GENKDMCONF} --in ${KDMCONFDIR};

fi

#run kdm
exec "%%PREFIX%%/bin/kdm-bin" "$@"