#!/usr/bin/env bash ############################################################################### # # Copyright (C) 2009-2013 Nintendo. All rights reserved. # # These coded instructions, statements, and computer programs contain # proprietary information of Nintendo of America Inc. and/or Nintendo # Company Ltd., and are protected by Federal copyright law. They may # not be disclosed to third parties or copied or duplicated in any form, # in whole or in part, without the prior written consent of Nintendo. # ############################################################################### if [ "$_" != "$0" ] then command_option="$1" if [ -z "$command_option" ] then echo "Usage: source pcfsoversata -enable|-disable" echo " -enable Enable PCFS over SATA connectivity." echo " -disable Disable PCFS over SATA connectivity." echo else if [ "$command_option" = "-enable" ] then cafeoptions.bat -pcfsoversata >/dev/null export USE_PCFS_OVER_SATA=1 elif [ "$command_option" = "-disable" ] then cafeoptions.bat -nopcfsoversata >/dev/null unset USE_PCFS_OVER_SATA fi fi else echo "$(basename $0): Error! Can't be ran as a script." echo echo "Please run as:" echo " source $(basename $0)" echo " - or -" echo " . $(basename $0)" echo fi