postinst is in dhcpcd 1:3.2.3-9ubuntu1.
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 | #!/bin/sh -e
# /etc/dhcpc/resolv.conf is now a link to /var/lib/dhcpcd/resolv.conf
rm -f /etc/dhcpc/resolv.conf
ln -s /var/lib/dhcpcd/resolv.conf /etc/dhcpc/resolv.conf
# remove older-version state dir.
rm -rf /var/lib/dhcpc
# share binary and man page with dhcpcd5
update-alternatives --quiet --install /sbin/dhcpcd dhcpcd /sbin/dhcpcd3 100 \
--slave /usr/share/man/man8/dhcpcd.8.gz dhcpcd.8.gz \
/usr/share/man/man8/dhcpcd3.8.gz
update-alternatives --auto dhcpcd
|