summaryrefslogtreecommitdiff
path: root/debian/postinst
blob: 2f2064ddfb5025e91ee012cb8e3550973be7eee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e

if [ "$1" = "configure" ]; then
    # fix for LP: 1268050
    sed -i 's|^send host-name "<hostname>";|send host-name = gethostname();|g' /etc/dhcp/dhclient.conf

    # Trigger update for initramfs (LP: #1514485).
    command -v update-initramfs >/dev/null 2>&1 && update-initramfs -u
    [ -x /etc/kernel/postinst.d/dracut ] && /etc/kernel/postinst.d/dracut $(uname -r)
fi

#DEBHELPER#

exit 0