updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / libnss-gw-name-git / libnss-gw-name-git.install
blobad7e3cdce0d8d7cb97d1742c3c75e867229847cc
1 post_install() {
2         echo " > To make the system actually use this NSS module, add it to the list"
3         echo " > of hosts modules in /etc/nsswitch.conf:"
4         echo
5         echo "hosts: files gw_name dns"
8 post_remove() {
9         if grep -q "gw_name" /etc/nsswitch.conf; then
10                 echo " > Removing gw_name from /etc/nsswitch.conf."
11                 sed -i "s/ gw_name\( ?\)/\1/" /etc/nsswitch.conf
12         fi