mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
21 lines
384 B
Bash
21 lines
384 B
Bash
#!/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" "$@"
|