blob: 6010b3c67b17cf9f6f9329f67d8c162f11a81cf6 [file] [log] [blame]
#!/bin/bash
# Copyright 2020 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.
#
# This script is required by the emulator to bring up the TAP network
# interface on Mac OSX. Do not remove or edit this script
# without testing it against ffx emu.
#
# If you are using `--net tap` option with ffx emu, configure this file as
# the upscript to use, by running:
# ffx config set emu.upscript $FUCHSIA_ROOT/tools/devshell/lib/emu-ifup-macos.sh
sudo ifconfig tap0 inet6 fc00::/7 up