3 # Copyright (C) 2008 Sony Computer Entertainment Inc.
4 # Copyright 2008 Sony Corp.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; version 2 of the License.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 ps3-bl-option [OPTION]
25 Get and set PS3 bootloader options in flash.
28 Get the bootloader video mode.
29 -M, --set-video-mode value
30 Set the bootloader video mode.
31 -o, --get-bootloader-timeout
32 Get the bootloader timeout in seconds.
33 -O, --set-bootloader-timeout value
34 Set the bootloader timeout in seconds.
35 -p, --get-bootloader-default
36 Get the default bootloader menu item.
37 -P, --set-bootloader-default value
38 Set the default bootloader menu item.
39 -t, --get-telnet-enabled
40 Get the telnet enabled flag.
41 -T, --set-telnet-enabled value
42 Set the telnet enabled flag.
51 echo "ERROR: bad arg" >&2;
56 if [ "$#" -eq 0 ] ; then
61 flags
=`ps3-flash-util --db-print $1 $2`
62 echo $
(( ${flags:-0} & $3 ))
66 flags
=`ps3-flash-util --db-print $1 $2`
69 ps3-flash-util
--db-write-half $1 $2 $
(( ${flags:-0} & ~
$3 ))
71 ps3-flash-util
--db-write-half $1 $2 $
(( ${flags:-0} |
$3 ))
88 -m |
--get-video-mode)
89 ps3-flash-util
--db-print ${bootloader} ${video}
91 -M |
--set-video-mode)
92 ps3-flash-util
--db-write-half ${bootloader} ${video} $2
94 -o |
--get-bootloader-timeout)
95 ps3-flash-util
--db-print ${bootloader} ${timeout}
97 -O |
--set-bootloader-timeout)
98 ps3-flash-util
--db-write-half ${bootloader} ${timeout} $2
100 -p |
--get-bootloader-default)
101 ps3-flash-util
--db-print ${bootloader} ${item}
103 -P |
--set-bootloader-default)
104 ps3-flash-util
--db-write-word ${bootloader} ${item} $2
106 -t |
--get-telnet-enabled)
107 get_flag
${bootloader} ${flags} ${telnet}
109 -T |
--set-telnet-enabled)
110 set_flag
${bootloader} ${flags} ${telnet} $2
This page took 0.060365 seconds and 5 git commands to generate.