/[Development]
ViewVC logotype

Revision 3613


Jump to revision: Previous Next
Author: stepan
Date: Sat Sep 27 10:08:28 2008 UTC (4 years, 7 months ago)
Changed paths: 29
Log Message:
Add string support to nvramtool.

To add a string to your cmos.layout, you need to specify type 's':

#start     len       type    unused   name
416        512       s       0        boot_devices

With this patch you can do

$ nvramtool -w boot_devices="(hd0,0);(hd2,1);(hd3)"

And FILO will attempt to load a menu.lst from any of these devices in that
order.

The patch is not exactly pretty, but a cleaner solution might have resulted in
a complete rewrite of the tool, which I did not want.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Joseph Smith <joe@settoplinux.org>



Changed paths

Path Details
Directorytrunk/util/nvramtool/ChangeLog modified , text changed
Directorytrunk/util/nvramtool/DISCLAIMER modified , text changed
Directorytrunk/util/nvramtool/Makefile modified , text changed
Directorytrunk/util/nvramtool/README modified , text changed
Directorytrunk/util/nvramtool/cmos_lowlevel.c modified , text changed
Directorytrunk/util/nvramtool/cmos_lowlevel.h modified , text changed
Directorytrunk/util/nvramtool/cmos_ops.c modified , text changed
Directorytrunk/util/nvramtool/cmos_ops.h modified , text changed
Directorytrunk/util/nvramtool/common.c modified , text changed
Directorytrunk/util/nvramtool/common.h modified , text changed
Directorytrunk/util/nvramtool/compute_ip_checksum.c modified , text changed
Directorytrunk/util/nvramtool/hexdump.c modified , text changed
Directorytrunk/util/nvramtool/hexdump.h modified , text changed
Directorytrunk/util/nvramtool/input_file.c modified , text changed
Directorytrunk/util/nvramtool/input_file.h modified , text changed
Directorytrunk/util/nvramtool/ip_checksum.h modified , text changed
Directorytrunk/util/nvramtool/layout.c modified , text changed
Directorytrunk/util/nvramtool/layout.h modified , text changed
Directorytrunk/util/nvramtool/layout_file.c modified , text changed
Directorytrunk/util/nvramtool/layout_file.h modified , text changed
Directorytrunk/util/nvramtool/lbtable.c modified , text changed
Directorytrunk/util/nvramtool/lbtable.h modified , text changed
Directorytrunk/util/nvramtool/nvramtool.1 modified , text changed
Directorytrunk/util/nvramtool/nvramtool.c modified , text changed
Directorytrunk/util/nvramtool/nvramtool.spec modified , text changed
Directorytrunk/util/nvramtool/opts.c modified , text changed
Directorytrunk/util/nvramtool/opts.h modified , text changed
Directorytrunk/util/nvramtool/reg_expr.c modified , text changed
Directorytrunk/util/nvramtool/reg_expr.h modified , text changed

Stefan Reinauer">Stefan Reinauer
ViewVC Help
Powered by ViewVC 1.1.15