pkg://welcome2l_3.04-23_alpha.deb:28428/preinst
info downloads
#!/bin/sh
# $Id: preinst 62 2008-05-26 18:15:37Z robert $
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..."
printf "Debian GNU/`uname -s` `cat /etc/debian_version` \\\n \\l\n\n" > /etc/issue
echo "done."
fi
fi