2024-02-09 10:17:42 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-02-26 23:56:38 +01:00
|
|
|
# Clean up
|
2024-02-09 10:17:42 +01:00
|
|
|
set -e
|
2016-02-27 00:11:33 +01:00
|
|
|
|
2016-02-26 23:56:38 +01:00
|
|
|
apt-get --yes clean
|
|
|
|
|
|
|
|
# Removing leftover leases and persistent rules
|
|
|
|
echo "cleaning up dhcp leases"
|
|
|
|
rm /var/lib/dhcp/*
|
|
|
|
|
2024-02-09 10:17:42 +01:00
|
|
|
# Use systemd-resolved nameserver
|
|
|
|
echo "nameserver 127.0.0.53" > /etc/resolv.conf
|