blob: 0b3afc23aa703c467cd7d4e89ec5d52acf415577 [file] [log] [blame]
#!/bin/bash
# Copyright 2017 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
### get the address of a running fuchsia system
set -e
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"/lib/vars.sh
fx-config-read
# We want to give the user time to accept Darwin's firewall dialog.
if [[ "$(uname -s)" = "Darwin" ]]; then
"${ZIRCON_TOOLS_DIR}/netaddr" "$@"
else
"${ZIRCON_TOOLS_DIR}/netaddr" --nowait "$@"
fi