#!/bin/sh

if [ "$1" = install ]; then
dpkg-divert --package ume-config-netbook --divert /etc/X11/xorg.conf.orig --rename /etc/X11/xorg.conf
fi

if [ "$1" = upgrade ]; then

# Don't exit on error since its possible some upstart tasks do not
# need to be moved
set +e

# Restore upstart tasks to their state when installed so dpkg will find them
# in the same location and can properly update them.
update-upstart enable config-modules
update-upstart disable psb-modules
update-upstart disable agp-modules

set -e

fi
