preinst is in libopenni0 1.5.4.0-14.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/bin/sh
set -e
dpkg-maintscript-helper mv_conffile /etc/openni/modules.xml /var/lib/ni/modules.xml 1.5.4.0-7~ libopenni0 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/openni/licenses.xml /var/lib/ni/licenses.xml 1.5.4.0-7~ libopenni0 -- "$@"
case "$1" in
upgrade)
# Fix for #767653
if dpkg --compare-versions "$2" lt "1.5.4.0-8"; then
mv /var/lib/ni/licenses.xml /var/lib/ni/licenses.xml.dpkg-old
mv /var/lib/ni/modules.xml /var/lib/ni/modules.xml.dpkg-old
fi
;;
esac
exit 0
|