#!/bin/sh

if ! grep -q '^hosts.*mdns' /opt/etc/nsswitch.conf; then
  sed -i 's,^hosts.*,hosts:      files mdns4_minimal [NOTFOUND=return] dns,' /opt/etc/nsswitch.conf
fi
