diff -Nru trackpoint-psmouse-reload-1.8/debian/changelog trackpoint-psmouse-reload-1.9/debian/changelog --- trackpoint-psmouse-reload-1.8/debian/changelog 2012-08-13 20:38:02.000000000 +0000 +++ trackpoint-psmouse-reload-1.9/debian/changelog 2012-08-14 19:57:54.000000000 +0000 @@ -1,3 +1,9 @@ +trackpoint-psmouse-reload (1.9) precise; urgency=low + + * debian/postinst: New file. Run reload script on installation. + + -- James Ferguson Tue, 14 Aug 2012 15:57:40 -0400 + trackpoint-psmouse-reload (1.8) precise; urgency=low * etc/init/trackpoint-psmouse-reload.conf: needs to start before diff -Nru trackpoint-psmouse-reload-1.8/debian/postinst trackpoint-psmouse-reload-1.9/debian/postinst --- trackpoint-psmouse-reload-1.8/debian/postinst 1970-01-01 00:00:00.000000000 +0000 +++ trackpoint-psmouse-reload-1.9/debian/postinst 2012-08-14 19:56:55.000000000 +0000 @@ -0,0 +1,42 @@ +#!/bin/sh +# postinst script for trackpoint-psmouse-reload +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + # want to run it now - will be installed via volatile-task, + # may be needed. + /usr/share/trackpoint-psmouse-reload/trackpoint-psmouse-reload.sh + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0