preinst is in edubuntu-artwork 15.12.1.
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 25 26 27 28 29 30 31 32 | #!/bin/sh
set -e
case "$1" in
install|upgrade)
cleanup_and_divert() {
# For quite a while we had broken diverts, try and fix them
if [ -f $1.orig ]; then
mv $1.orig $1
fi
dpkg-divert --quiet --package edubuntu-artwork --divert $1.orig --rename $1
}
# Breathe icon theme
cleanup_and_divert /usr/share/icons/Breathe/16x16/places/start-here.png
cleanup_and_divert /usr/share/icons/Breathe/22x22/places/start-here.png
cleanup_and_divert /usr/share/icons/Breathe/24x24/places/start-here.png
cleanup_and_divert /usr/share/icons/Breathe/32x32/places/start-here.png
cleanup_and_divert /usr/share/icons/Breathe/48x48/places/start-here.png
cleanup_and_divert /usr/share/icons/Breathe/scalable/places/start-here.svg
# GartoonRedux icon theme
cleanup_and_divert /usr/share/icons/GartoonRedux/16x16/places/distributor-logo.png
cleanup_and_divert /usr/share/icons/GartoonRedux/22x22/places/distributor-logo.png
cleanup_and_divert /usr/share/icons/GartoonRedux/24x24/places/distributor-logo.png
cleanup_and_divert /usr/share/icons/GartoonRedux/32x32/places/distributor-logo.png
cleanup_and_divert /usr/share/icons/GartoonRedux/48x48/places/distributor-logo.png
# Unity distributor logo
cleanup_and_divert /usr/share/unity/icons/launcher_bfb.png
;;
esac
|