File migrate_desktop.sh of Package sle12-desktop-migration

#!/bin/bash

sed -i -e '/^DEFAULT_WM=/s/gnome\|[^"]*kde[^"]*/sle-classic/g' /mnt/etc/sysconfig/windowmanager > /dev/null
if [ $? -eq 0 ]; then
    echo "default desktop migrated to SLE-classic"
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