#!/bin/sh # Clean up set -e apt-get --yes clean # Removing leftover leases and persistent rules echo "cleaning up dhcp leases" rm /var/lib/dhcp/* # Use systemd-resolved nameserver echo "nameserver 127.0.0.53" > /etc/resolv.conf