pkg://welcome2l_3.04-20_i386.deb:25596/preinst
info downloads
#!/bin/sh
# $Id: preinst,v 1.2 2003-05-18 12:11:49 robert Exp $
set -e
W2L="welcome2l"
if [ "$1" = "upgrade" ] &&
dpkg --compare-versions "$2" le-nl "3.04-13"; then
# remove divertion of /etc/issue, dpkg doesn't support diverting
# conffiles
if dpkg-divert --list "$W2L" | grep -q "/etc/issue.*by.*$W2L" 2>/dev/null; then
rm -f /etc/issue && dpkg-divert --package $W2L --remove --rename \
--divert /etc/issue.$W2L /etc/issue
echo 1>&2
echo "Welcome2L will not longer modify your /etc/issue file!" 1>&2
echo "Please see /use/share/doc/welcome2l/README.Debian for details!" 1>&2
echo 1>&2
fi
#
[ -f "/etc/issue.$W2L.dpkg-new" ] &&
mv -f "/etc/issue.$W2L.dpkg-new" "/etc/issue.dpkg-new"
# Make sure that /etc/issue exists...
if [ ! -f /etc/issue ]; then
echo -n "Restoring the original /etc/issue..."
echo "Debian GNU/\s `cat /etc/debian_version` \n \l" > /etc/issue
echo "done."
fi
fi