#!/bin/sh


if [ "$1" = "upgrade" ]; then
  exit 0
fi

#update-rc.d typically only removes symlinks from rcN.d
update-rc.d -f synaptics-dbus remove
if [ -e /etc/init.d/synset ]; then
  update-rc.d -f synset remove
fi

if [ -e /etc/X11/xorg.conf ]; then
  if [ -e /opt/Synaptics/bin/synxorg ]; then
    cd /etc/X11
    /opt/Synaptics/bin/synxorg -r xorg.conf xorg.conf.Synaptics-exc
    mv -f xorg.conf.Synaptics-exc xorg.conf
  fi
fi

