diff options
author | garlicbreadwolfs | 2022-04-25 04:07:22 +0900 |
---|---|---|
committer | garlicbreadwolfs | 2022-04-25 04:07:22 +0900 |
commit | f665c6656243e58c2b4fb64ee5df9feb4448121d (patch) | |
tree | 26685c5ed99e4f9580e4f5ca83e082181b249ed3 /resolvconf-symlink-systemd-uplink.install | |
download | aur-f665c6656243e58c2b4fb64ee5df9feb4448121d.tar.gz |
Initial import
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 +} |