add a new utility, grub-md5-crypt.

This commit is contained in:
okuji 2000-10-21 21:58:46 +00:00
parent 728e74eef6
commit 7561bde29d
16 changed files with 207 additions and 22 deletions

View file

@ -3,7 +3,7 @@ grub_TEXINFOS = tutorial.texi user-ref.texi prog-ref.texi \
appendices.texi
EXAMPLES = boot.S kernel.c multiboot.h
multiboot_TEXINFOS = boot.S.texi kernel.c.texi multiboot.h.texi
man_MANS = grub.8 mbchk.1 grub-install.8
man_MANS = grub.8 mbchk.1 grub-install.8 grub-md5-crypt.8
HELP2MAN = help2man
SRC2TEXI = src2texi
noinst_SCRIPTS = $(HELP2MAN) $(SRC2TEXI)
@ -38,4 +38,10 @@ $(srcdir)/mbchk.1: ../util/mbchk $(srcdir)/$(HELP2MAN)
$(PERL) $(srcdir)/$(HELP2MAN) \
--name="check the format of a Multiboot kernel" \
--section=1 --output=$@ $<
$(srcdir)/grub-md5-crypt.8: ../util/grub-md5-crypt $(srcdir)/$(HELP2MAN)
chmod 755 $<
$(PERL) $(srcdir)/$(HELP2MAN) \
--name="Encrypt a password in MD5 format" \
--section=8 --output=$@ $<
endif

View file

@ -93,7 +93,7 @@ grub_TEXINFOS = tutorial.texi user-ref.texi prog-ref.texi \
EXAMPLES = boot.S kernel.c multiboot.h
multiboot_TEXINFOS = boot.S.texi kernel.c.texi multiboot.h.texi
man_MANS = grub.8 mbchk.1 grub-install.8
man_MANS = grub.8 mbchk.1 grub-install.8 grub-md5-crypt.8
HELP2MAN = help2man
SRC2TEXI = src2texi
noinst_SCRIPTS = $(HELP2MAN) $(SRC2TEXI)
@ -469,6 +469,12 @@ maintainer-clean-generic clean mostlyclean distclean maintainer-clean
@MAINTAINER_MODE_TRUE@ --name="check the format of a Multiboot kernel" \
@MAINTAINER_MODE_TRUE@ --section=1 --output=$@ $<
@MAINTAINER_MODE_TRUE@$(srcdir)/grub-md5-crypt.8: ../util/grub-md5-crypt $(srcdir)/$(HELP2MAN)
@MAINTAINER_MODE_TRUE@ chmod 755 $<
@MAINTAINER_MODE_TRUE@ $(PERL) $(srcdir)/$(HELP2MAN) \
@MAINTAINER_MODE_TRUE@ --name="Encrypt a password in MD5 format" \
@MAINTAINER_MODE_TRUE@ --section=8 --output=$@ $<
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View file

@ -16,21 +16,21 @@ print the version information and exit
.TP
\fB\-\-root\-directory\fR=\fIDIR\fR
install GRUB images under the directory DIR
instead of the root directory.
instead of the root directory
.TP
\fB\-\-grub\-shell\fR=\fIFILE\fR
use FILE as the grub shell.
use FILE as the grub shell
.TP
\fB\-\-force\-lba\fR
force GRUB to use LBA mode even for a buggy
BIOS.
BIOS
.TP
\fB\-\-recheck\fR
probe a device map even if it already exists.
probe a device map even if it already exists
.PP
INSTALL_DEVICE can be a GRUB device name or a system device filename.
.PP
Reports bugs to <bug-grub@gnu.org>.
.SH "REPORTING BUGS"
Report bugs to <bug-grub@gnu.org>.
.SH "SEE ALSO"
The full documentation for
.B grub-install

32
docs/grub-md5-crypt.8 Normal file
View file

@ -0,0 +1,32 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.020.
.TH GRUB-MD5-CRYPT "8" "October 2000" "grub-md5-crypt (GNU GRUB )" FSF
.SH NAME
grub-md5-crypt \- Encrypt a password in MD5 format
.SH SYNOPSIS
.B grub-md5-crypt
[\fIOPTION\fR]
.SH DESCRIPTION
Encrypt a password in MD5 format.
.TP
\fB\-h\fR, \fB\-\-help\fR
print this message and exit
.TP
\fB\-v\fR, \fB\-\-version\fR
print the version information and exit
.TP
\fB\-\-grub\-shell\fR=\fIFILE\fR
use FILE as the grub shell
.SH "REPORTING BUGS"
Report bugs to <bug-grub@gnu.org>.
.SH "SEE ALSO"
The full documentation for
.B grub-md5-crypt
is maintained as a Texinfo manual. If the
.B info
and
.B grub-md5-crypt
programs are properly installed at your site, the command
.IP
.B info grub-md5-crypt
.PP
should give you access to the complete manual.

View file

@ -22,6 +22,8 @@
@direntry
* GRUB: (grub). The GRand Unified Bootloader
* grub-install: (grub)Invoking grub-install. Install GRUB on your drive
* grub-md5-crypt: (grub)Invoking grub-md5-crypt. Encrypt a password
in MD5 format
* mbchk: (grub)Invoking mbchk. Check for the format of a Multiboot kernel
@end direntry
@ -113,6 +115,7 @@ Part II: The User Reference Manual
* Troubleshooting:: Error messages produced by GRUB
* Invoking the grub shell:: How to use the grub shell
* Invoking grub-install:: How to use the GRUB installer
* Invoking grub-md5-crypt:: How to generate a cryptic password
* Invoking mbchk:: How to use the Multiboot checker
Part III: The Programmer Reference Manual

View file

@ -1,3 +1,3 @@
@set UPDATED 14 October 2000
@set UPDATED 22 October 2000
@set EDITION 0.5.97
@set VERSION 0.5.97

View file

@ -1654,6 +1654,28 @@ grub-install --grub-shell="grub --read-only" /dev/fd0
@end table
@node Invoking grub-md5-crypt
@chapter Invoking grub-md5-crypt
The program @command{grub-md5-crypt} encrypts a password in MD5 format.
This is just a frontend of the grub shell (@pxref{Invoking the grub
shell}). Passwords encrypted by this program can be used with the
command @command{password} (@pxref{Command-line and menu commands}).
@command{grub-md5-crypt} accepts the following options:
@table @option
@item --help
Print a summary of the command line options and exit.
@item --version
Print the version information and exit.
@item --grub-shell=@var{file}
Use @var{file} as the grub shell.
@end table
@node Invoking mbchk
@chapter Invoking mbchk

View file

@ -1,3 +1,3 @@
@set UPDATED 14 October 2000
@set UPDATED 22 October 2000
@set EDITION 0.5.97
@set VERSION 0.5.97