1#!/usr/bin/env bash 2 3############################################################################### 4# 5# Copyright (C) 2009-2013 Nintendo. All rights reserved. 6# 7# These coded instructions, statements, and computer programs contain 8# proprietary information of Nintendo of America Inc. and/or Nintendo 9# Company Ltd., and are protected by Federal copyright law. They may 10# not be disclosed to third parties or copied or duplicated in any form, 11# in whole or in part, without the prior written consent of Nintendo. 12# 13############################################################################### 14 15source getbridgetype 16 17if [ "$BRIDGE_TYPE" == "Mion" ] 18then 19 command_option1="$1" 20 command_option2="$2" 21 command_option3="$3" 22 if [ ! "$command_option1" ] 23 then 24 echo "Current Bridge Name = $BRIDGE_CURRENT_NAME" 25 echo "Current Bridge IP Address = $BRIDGE_CURRENT_IP_ADDRESS" 26 else 27 getbridgeconfig.exe "$@" 28 29 fi 30else 31 echo "Bridge type invalid: This bridge tool only works with Catdev v3 or ev_x4 and newer devkits" 32fi 33 34