# gdm.conf is no longer used, custom.conf is the preferred method
if [ -r etc/X11/gdm/gdm.conf ]; then
  bin/mv etc/X11/gdm/gdm.conf etc/X11/gdm/gdm.conf.deprecated
fi

# Preserve existing custom.conf
if [ -r etc/X11/gdm/custom.conf ]; then
  bin/mv etc/X11/gdm/custom.conf etc/X11/gdm/custom.conf.backup
fi

# Install our config. Normally we don't force configs upon users, but we want
# to ensure a working config after reboot (presuming you use a graphical login).
if [ -r etc/X11/gdm/custom.conf.gware ]; then
  bin/mv etc/X11/gdm/custom.conf.gware etc/X11/gdm/custom.conf
fi

# gdm should be in /usr/sbin
if [ -f usr/bin/gdm ]; then
  cd usr/bin
  rm -rf gdm
  ln -sf ../sbin/gdm gdm
fi

if [ -x usr/bin/gtk-update-icon-cache ]; then
  chroot . /usr/bin/gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor \
  1>/dev/null
fi

if [ -x usr/bin/rarian-sk-update ]; then
  chroot . /usr/bin/rarian-sk-update \
  1>/dev/null
fi

