diff options
Diffstat (limited to 'resolvconf-symlink-systemd-uplink.install')
-rw-r--r-- | resolvconf-symlink-systemd-uplink.install | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/resolvconf-symlink-systemd-uplink.install b/resolvconf-symlink-systemd-uplink.install new file mode 100644 index 000000000000..9a906febdf1c --- /dev/null +++ b/resolvconf-symlink-systemd-uplink.install @@ -0,0 +1,13 @@ +post_install() { + /usr/bin/mv /etc/resolv.conf /run/systemd/resolve/resolv.conf + /usr/bin/ln -sfT /run/systemd/resolve/resolv.conf /etc/resolv.conf +} + +post_upgrade() { + post_install +} + +post_remove() { + /usr/bin/unlink /etc/resolv.conf + /usr/bin/mv /run/systemd/resolve/resolv.conf /etc/resolv.conf +} |