3 # Copyright (c) 2018 Apple Inc. All rights reserved.
5 # This script is currently for Apple Internal use only.
9 script=${BASH_SOURCE[0]}
11 #============================================================================================================================
13 #============================================================================================================================
18 echo "Usage: $( basename "${script}" ) [options]"
21 echo " -V Display version of this script and exit."
25 #============================================================================================================================
27 #============================================================================================================================
31 while getopts ":hV" option
; do
38 echo "$( basename "${script}" ) version ${version}"
42 ErrQuit
"option '${OPTARG}' requires an argument."
45 ErrQuit
"unknown option '${OPTARG}'."
50 [ "${OPTIND}" -gt "$#" ] || ErrQuit
"unexpected argument \""${!OPTIND}"\"."
52 launchctl load
/Library
/LaunchDaemons
/com.apple.mDNSResponder.mdns
-tcpdump.plist
53 launchctl start com.apple.mDNSResponder.mdns
-tcpdump