diff options
author | Michael Prokop <mika@debian.org> | 2010-06-08 00:52:46 +0200 |
---|---|---|
committer | Michael Prokop <mika@debian.org> | 2010-06-08 00:52:46 +0200 |
commit | 86223e387feb41c8dd15231fc87ce23c2b71c310 (patch) | |
tree | cbae700fd23d9365b67017d9c870bce1c0ad27e4 /docs/framebuffer | |
parent | bacdb4b82667bfba079617a0d26eaffffc7df038 (diff) |
Document mode vs. mode_option option in framebuffer example script.
[Closes: #439846]
Signed-off-by: Michael Prokop <mika@debian.org>
Diffstat (limited to 'docs/framebuffer')
-rw-r--r-- | docs/framebuffer | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/framebuffer b/docs/framebuffer index 678ffdf..47d8302 100644 --- a/docs/framebuffer +++ b/docs/framebuffer @@ -21,14 +21,16 @@ esac # 1) options are comma-separated # 2) options can be in either of these three forms: # <arg>=<value>, <arg>:<value>, <boolean-arg>. -# 3) the "mode" option has the form <xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m] -# and may or may not start with "mode=" +# 3) the "mode" or "mode_option" option (name depends on the framebuffer driver) +# has the form <xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m] +# and may or may not start with "mode=" or "mode_option=" +# -> please adjust as necessary in the parse_video_opts() function # # When the options are used with modules, they need to be space-separated # and the following conversions are needed: # <arg>:<value> -> <arg>=<value> # <boolean-arg> -> <boolean-arg>=1 -# <modevalue> -> mode=<modevalue> +# <modevalue> -> mode=<modevalue> or mode_option=<modevalue> parse_video_opts() { local OPTS="$1" @@ -48,7 +50,10 @@ parse_video_opts() echo -n "${opt%:*}=${opt#*:} " # Presumably a modevalue without the "mode=" prefix elif [ "${opt}" != "${opt#[0-9]*x[0-9]}" ]; then + # Adjust: mode= option? echo -n "mode=$opt " + # ... or mode_option= option? + # echo -n "mode_option=$opt " # Presumably a boolean else echo -n "${opt}=1 " |