1#!/bin/sh
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
15if [ $# -ne 1 ]
16then
17    echo "Usage: `basename $0` <BG stress mode Number>" 1>&2
18    exit 1
19fi
20
21if [ $1 == 0 ]
22then
23    caferun $CAFE_ROOT/data/mlc/sys/title/00050010/1f700500/code/system_config_tool.rpx -c "bg_enable 0" -c "bg_stress_mode $1" -c exit
24fi
25
26if [ $1 != 0 ]
27then
28    caferun $CAFE_ROOT/data/mlc/sys/title/00050010/1f700500/code/system_config_tool.rpx -c "bg_enable 1" -c "goto_test_setting" -c "modeEnter_bg_stress_mode $1" -c modeEnter_exit
29    caferun $CAFE_ROOT/data/mlc/sys/title/00050010/1f700500/code/system_config_tool.rpx -c "goto_test_setting"
30fi
31
32