#!/bin/sh -e

if [ -z "$YESNO" ]; then
  YESNO=$"yYnN"
fi

yesno "May I include your NIS domain name in the bug report? [Y/n] " yep

if [ "$REPLY" = "yep" ]; then
  echo >&3
  echo "NIS domain: $(/bin/domainname) " >&3
  echo
fi

if [ -x /usr/bin/nm-tool ]; then
  /usr/bin/nm-tool >&3
else
  echo "nm-tool is not installed" >&3
fi
