postinst is in netplan.io 0.36.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 | #!/bin/sh
set -e
set -u
case "$1" in
configure)
if dpkg --compare-versions "$2" lt "0.35"; then
# Create /etc/network/interfaces as breadcrumbs if it doesn't
# already exist
if [ ! -f /etc/network/interfaces ]; then
cat <<EOF >/etc/network/interfaces
# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
# sudo apt install ifupdown
EOF
fi
fi
;;
*)
;;
esac
exit 0
|