summarylogtreecommitdiffstats
path: root/resolvconf-symlink-systemd-uplink.install
blob: 9a906febdf1cd2ba52905ff3172b821a0c09b923 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
}