#!/bin/bash

sed -i -e '/^DEFAULT_WM=/s/[^"]*kde[^"]*/gnome/g' /mnt/etc/sysconfig/windowmanager > /dev/null
if [ $? -eq 0 ]; then
    echo "default desktop migrated to GNOME"
fi

sed -i -e '/^DISPLAYMANAGER=/s/kdm[^"]*/gdm/g' /mnt/etc/sysconfig/displaymanager > /dev/null
if [ $? -eq 0 ]; then
    echo "display manager migrated to gdm"
fi
exit 0
