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 }