pkg://cipe-common_1.3.0-3_all.deb:27746/postinst
info downloads
#!/bin/sh
set -e
case "$1" in
configure)
# continue as normal
;;
abort-upgrade|abort-remove|abort-deconfigure)
exit 0;
;;
*)
echo "postinst called with unknown argument \`$1'" >&2;
exit 0;
;;
esac
update-rc.d cipe defaults >/dev/null
install-info --quiet --section "Networking" "Networking" \
--description="Encrypted IP tunnels over UDP" \
/usr/share/info/cipe.info.gz
if [ "$1" = "configure" ]; then
if [ -d /usr/doc -a ! -e /usr/doc/cipe-common \
-a -d /usr/share/doc/cipe-common ]; then
ln -sf ../share/doc/cipe-common /usr/doc/cipe-common
fi
fi
if [ -e /etc/cipe/options ]; then
echo
echo "You have the old-style /etc/cipe/options configuration file."
echo "This Debian package now has support for multiple encrypted"
echo "links; this is achieved by having the config files located"
echo "at /etc/cipe/peers/<peername>. I will rename your old config"
echo "for you - it will be /etc/cipe/peers/default."
echo
echo "Press ENTER to continue."
read reply
[ -e /etc/cipe/peers/default ] \
&& mv /etc/cipe/peers/default /etc/cipe/peers/default.old
mv /etc/cipe/options /etc/cipe/peers/default
fi