#!/bin/sh # # $FreeBSD$ # Some definitions. 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" "$@"