preinst is in ppp 2.4.7-2+2ubuntu1.
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 21 22 23 24 | #!/bin/sh
set -e
case "$1" in
install|upgrade)
if dpkg --compare-versions "$2" lt "2.4.6-3ubuntu1"; then
update-rc.d pppd-dns remove
fi
if dpkg --compare-versions "$2" le "2.4.5-4"; then
if dpkg --compare-versions "$2" le "2.4.4b1-1"; then
rm -f /etc/init.d/ppp
update-rc.d ppp remove
fi
rm -f /etc/apm/event.d/ppp
fi
;;
esac
# Automatically added by dh_installdeb/11.1.4ubuntu1
dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/pon 2.4.7-1\+2\~ -- "$@"
# End automatically added section
|