summarylogtreecommitdiffstats
path: root/localtld.install
blob: e3628dda5ac51fc56f14fc1b1efb6fe499db1d23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

post_install() {
  if ` grep -q localtld /etc/nsswitch.conf `; then
    echo localtld is already configured
  else
    sed -i 's/ dns / localtld dns /' /etc/nsswitch.conf
  fi
}

post_remove() {
  sed -i 's/localtld//' /etc/nsswitch.conf
}