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 echo " bl-option [OPTION]" >&2
25 echo "DESCRIPTION" >&2
26 echo " Get and set PS3 bootloader options in flash." >&2
29 echo " -m, --get-video-mode" >&2
30 echo " Get the bootloader video mode." >&2
32 echo " -M, --set-video-mode value" >&2
33 echo " Set the bootloader video mode." >&2
35 echo " -p, --get-petitboot-default" >&2
36 echo " Get the default Petitboot menu item." >&2
38 echo " -P, --set-petitboot-default value" >&2
39 echo " Set the default Petitboot menu item." >&2
41 echo " -t, --get-telnet-enabled" >&2
42 echo " Get the telnet enabled flag." >&2
44 echo " -T, --set-telnet-enabled value" >&2
45 echo " Set the telnet enabled flag." >&2
47 echo " -h, --help" >&2
48 echo " Print a help message." >&2
51 echo " ps3-flash-util(8)" >&2
56 if [ "$#" -eq 0 ] ; then
57 echo "ERROR: bad arg" >&2;
62 flags
=`ps3-flash-util --db-print $1 $2`
63 echo $
(( ${flags:-0} & $3 ))
67 flags
=`ps3-flash-util --db-print $1 $2`
70 ps3-flash-util
--db-write-half $1 $2 $
(( ${flags:-0} & ~
$3 ))
72 ps3-flash-util
--db-write-half $1 $2 $
(( ${flags:-0} |
$3 ))
88 -m |
--get-video-mode)
89 ps3-flash-util
--db-print ${petitboot} ${video}
91 -M |
--set-video-mode)
92 ps3-flash-util
--db-write-half ${petitboot} ${video} $2
94 -p |
--get-petitboot-default)
95 ps3-flash-util
--db-print ${petitboot} ${menu}
97 -P |
--set-petitboot-default)
98 ps3-flash-util
--db-write-word ${petitboot} ${menu} $2
100 -t |
--get-telnet-enabled)
101 get_flag
${petitboot} ${flags} ${telnet}
103 -T |
--set-telnet-enabled)
104 set_flag
${petitboot} ${flags} ${telnet} $2
110 echo "ERROR: bad arg $1" >&2;
This page took 0.047701 seconds and 5 git commands to generate.