mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
410 B

  1. #!/bin/sh
  2. if any_installed "lib/libnss_mdns.so.2" ; then
  3. echo "mdnsresponder: adding 'mdns' to host: line in /etc/nsswitch.conf .."
  4. sed -i -e '/mdns/! s/^\(hosts:.*\)dns\(.*\)/\1mdns dns\2/' /etc/nsswitch.conf
  5. fi
  6. if any_removed "lib/libnss_mdns.so.2" ; then
  7. echo "mdnsresponder: removing 'mdns' from host: line in /etc/nsswitch.conf .."
  8. sed -i -e 's/^\(hosts:.*\)mdns \(.*\)/\1\2/' /etc/nsswitch.conf
  9. fi