# Set ldm as the default-display-manager to prevent other display managers
# from starting, until ldm implements the full protocol itself.
if [ -f /etc/X11/default-display-manager ]; then
    # Set DEFAULT_DISPLAY_MANAGER="" in lts.conf to leave the existing one,
    # or DEFAULT_DISPLAY_MANAGER="/path/to/dm" to force another.
    dm=${DEFAULT_DISPLAY_MANAGER-/usr/sbin/ldm}
    if [ -n "$dm" ] ; then
        echo "$dm" > /etc/X11/default-display-manager
    fi
fi

