aboutsummaryrefslogtreecommitdiff
path: root/files/firstboot/24-create-resolv-symlink.sh
diff options
context:
space:
mode:
Diffstat (limited to 'files/firstboot/24-create-resolv-symlink.sh')
-rw-r--r--files/firstboot/24-create-resolv-symlink.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/files/firstboot/24-create-resolv-symlink.sh b/files/firstboot/24-create-resolv-symlink.sh
deleted file mode 100644
index 8a3f00b..0000000
--- a/files/firstboot/24-create-resolv-symlink.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-logger -t "rc.firstboot" "Creating /etc/resolv.conf symlink"
-
-# Check if systemd resolve directory exists
-if [ ! -d "/run/systemd/resolve" ] ; then
- systemctl enable systemd-resolved.service
- systemctl restart systemd-resolved.service
-fi
-
-# Create resolv.conf file if it does not exists
-if [ ! -f "/run/systemd/resolve/resolv.conf" ] ; then
- touch /run/systemd/resolve/resolv.conf
-fi
-
-# Create symlink to /etc/reolv.conf
-ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf