libnss-mdns.postinst 253 B

123456
  1. sed -e '/^hosts:/s/\s*\<mdns\>//' \
  2. -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 mdns4_minimal [NOTFOUND=return]\3\4 mdns\5/' \
  3. -i $D/etc/nsswitch.conf
  4. if [ x"$D" = "x" ]; then
  5. if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
  6. fi