#!/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 -e "\nNIS domain: $(/bin/domainname) \n" >&3
fi

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