Add usage(), rcsids.
This commit is contained in:
parent
ad17ca10b7
commit
eb0b829002
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31386
@ -39,14 +39,17 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)bpf.c 8.1 (Berkeley) 6/4/93
|
* from: @(#)bpf.c 8.1 (Berkeley) 6/4/93
|
||||||
* $Id: bpf.c,v 1.7 1997/06/29 19:00:01 steve Exp $
|
|
||||||
*
|
*
|
||||||
* From: Utah Hdr: bpf.c 3.1 92/07/06
|
* From: Utah Hdr: bpf.c 3.1 92/07/06
|
||||||
* Author: Jeff Forys, University of Utah CSS
|
* Author: Jeff Forys, University of Utah CSS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static const char sccsid[] = "@(#)bpf.c 8.1 (Berkeley) 6/4/93";
|
static const char sccsid[] = "@(#)bpf.c 8.1 (Berkeley) 6/4/93";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
@ -39,14 +39,17 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)conf.c 8.1 (Berkeley) 6/4/93
|
* from: @(#)conf.c 8.1 (Berkeley) 6/4/93
|
||||||
* $Id$
|
|
||||||
*
|
*
|
||||||
* From: Utah Hdr: conf.c 3.1 92/07/06
|
* From: Utah Hdr: conf.c 3.1 92/07/06
|
||||||
* Author: Jeff Forys, University of Utah CSS
|
* Author: Jeff Forys, University of Utah CSS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static const char sccsid[] = "@(#)conf.c 8.1 (Berkeley) 6/4/93";
|
static const char sccsid[] = "@(#)conf.c 8.1 (Berkeley) 6/4/93";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
@ -39,14 +39,17 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)parseconf.c 8.1 (Berkeley) 6/4/93
|
* from: @(#)parseconf.c 8.1 (Berkeley) 6/4/93
|
||||||
* $Id: parseconf.c,v 1.6 1997/06/29 19:00:08 steve Exp $
|
|
||||||
*
|
*
|
||||||
* From: Utah Hdr: parseconf.c 3.1 92/07/06
|
* From: Utah Hdr: parseconf.c 3.1 92/07/06
|
||||||
* Author: Jeff Forys, University of Utah CSS
|
* Author: Jeff Forys, University of Utah CSS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static const char sccsid[] = "@(#)parseconf.c 8.1 (Berkeley) 6/4/93";
|
static const char sccsid[] = "@(#)parseconf.c 8.1 (Berkeley) 6/4/93";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" from: @(#)rbootd.8 8.2 (Berkeley) 12/11/93
|
.\" from: @(#)rbootd.8 8.2 (Berkeley) 12/11/93
|
||||||
.\" $Id: rbootd.8,v 1.6 1997/06/23 04:02:13 steve Exp $
|
.\" $Id: rbootd.8,v 1.7 1997/06/29 19:00:13 steve Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Utah Hdr: rbootd.man 3.1 92/07/06
|
.\" Utah Hdr: rbootd.man 3.1 92/07/06
|
||||||
.\" Author: Jeff Forys, University of Utah CSS
|
.\" Author: Jeff Forys, University of Utah CSS
|
||||||
@ -56,30 +56,30 @@
|
|||||||
.Op config_file
|
.Op config_file
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Nm rbootd
|
.Nm
|
||||||
utility services boot requests from Hewlett-Packard workstations over a
|
utility services boot requests from Hewlett-Packard workstations over a
|
||||||
local area network.
|
local area network.
|
||||||
All boot files must reside in the boot file directory; further, if a
|
All boot files must reside in the boot file directory; further, if a
|
||||||
client supplies path information in its boot request, it will be silently
|
client supplies path information in its boot request, it will be silently
|
||||||
stripped away before processing.
|
stripped away before processing.
|
||||||
By default,
|
By default,
|
||||||
.Nm rbootd
|
.Nm
|
||||||
only responds to requests from machines listed in its configuration file.
|
only responds to requests from machines listed in its configuration file.
|
||||||
.Pp
|
.Pp
|
||||||
The options are as follows:
|
The options are as follows:
|
||||||
.Bl -tag -width Fl
|
.Bl -tag -width indent
|
||||||
.It Fl a
|
.It Fl a
|
||||||
Respond to boot requests from any machine.
|
Respond to boot requests from any machine.
|
||||||
The configuration file is ignored if this option is specified.
|
The configuration file is ignored if this option is specified.
|
||||||
.It Fl d
|
.It Fl d
|
||||||
Run
|
Run
|
||||||
.Nm rbootd
|
.Nm
|
||||||
in debug mode.
|
in debug mode.
|
||||||
Packets sent and received are displayed to the terminal.
|
Packets sent and received are displayed to the terminal.
|
||||||
.It Fl i Ar interface
|
.It Fl i Ar interface
|
||||||
Service boot requests on specified interface.
|
Service boot requests on specified interface.
|
||||||
If unspecified,
|
If unspecified,
|
||||||
.Nm rbootd
|
.Nm
|
||||||
searches the system interface list for the lowest numbered, configured
|
searches the system interface list for the lowest numbered, configured
|
||||||
``up'' interface (excluding loopback).
|
``up'' interface (excluding loopback).
|
||||||
Ties are broken by choosing the earliest match.
|
Ties are broken by choosing the earliest match.
|
||||||
@ -88,7 +88,7 @@ Ties are broken by choosing the earliest match.
|
|||||||
Specifying
|
Specifying
|
||||||
.Ar config_file
|
.Ar config_file
|
||||||
on the command line causes
|
on the command line causes
|
||||||
.Nm rbootd
|
.Nm
|
||||||
to use a different configuration file from the default.
|
to use a different configuration file from the default.
|
||||||
.Pp
|
.Pp
|
||||||
The configuration file is a text file where each line describes a particular
|
The configuration file is a text file where each line describes a particular
|
||||||
|
@ -39,7 +39,6 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)rbootd.c 8.1 (Berkeley) 6/4/93
|
* from: @(#)rbootd.c 8.1 (Berkeley) 6/4/93
|
||||||
* $Id: rbootd.c,v 1.7 1997/06/29 19:00:15 steve Exp $
|
|
||||||
*
|
*
|
||||||
* From: Utah Hdr: rbootd.c 3.1 92/07/06
|
* From: Utah Hdr: rbootd.c 3.1 92/07/06
|
||||||
* Author: Jeff Forys, University of Utah CSS
|
* Author: Jeff Forys, University of Utah CSS
|
||||||
@ -52,7 +51,11 @@ static const char copyright[] =
|
|||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static const char sccsid[] = "@(#)rbootd.c 8.1 (Berkeley) 6/4/93";
|
static const char sccsid[] = "@(#)rbootd.c 8.1 (Berkeley) 6/4/93";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -69,7 +72,7 @@ static const char sccsid[] = "@(#)rbootd.c 8.1 (Berkeley) 6/4/93";
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
|
||||||
extern char *__progname; /* from crt0.o */
|
static void usage __P((void));
|
||||||
|
|
||||||
int
|
int
|
||||||
main(argc, argv)
|
main(argc, argv)
|
||||||
@ -107,12 +110,14 @@ main(argc, argv)
|
|||||||
case 'i':
|
case 'i':
|
||||||
IntfName = optarg;
|
IntfName = optarg;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
usage();
|
||||||
}
|
}
|
||||||
for (; optind < argc; optind++) {
|
for (; optind < argc; optind++) {
|
||||||
if (ConfigFile == NULL)
|
if (ConfigFile == NULL)
|
||||||
ConfigFile = argv[optind];
|
ConfigFile = argv[optind];
|
||||||
else {
|
else {
|
||||||
warnx("too many config files (`%s' ignored)\n",
|
warnx("too many config files (`%s' ignored)",
|
||||||
argv[optind]);
|
argv[optind]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -134,7 +139,7 @@ main(argc, argv)
|
|||||||
(void) signal(SIGUSR2, DebugOff);
|
(void) signal(SIGUSR2, DebugOff);
|
||||||
}
|
}
|
||||||
|
|
||||||
openlog(__progname, LOG_PID, LOG_DAEMON);
|
openlog("rbootd", LOG_PID, LOG_DAEMON);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If no interface was specified, get one now.
|
* If no interface was specified, get one now.
|
||||||
@ -282,6 +287,13 @@ main(argc, argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
usage()
|
||||||
|
{
|
||||||
|
fprintf(stderr, "usage: rbootd [-ad] [-i interface] [config_file]\n");
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** DoTimeout -- Free any connections that have timed out.
|
** DoTimeout -- Free any connections that have timed out.
|
||||||
**
|
**
|
||||||
|
@ -39,14 +39,17 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)rmpproto.c 8.1 (Berkeley) 6/4/93
|
* from: @(#)rmpproto.c 8.1 (Berkeley) 6/4/93
|
||||||
* $Id: rmpproto.c,v 1.2 1997/06/29 19:00:24 steve Exp $
|
|
||||||
*
|
*
|
||||||
* From: Utah Hdr: rmpproto.c 3.1 92/07/06
|
* From: Utah Hdr: rmpproto.c 3.1 92/07/06
|
||||||
* Author: Jeff Forys, University of Utah CSS
|
* Author: Jeff Forys, University of Utah CSS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static const char sccsid[] = "@(#)rmpproto.c 8.1 (Berkeley) 6/4/93";
|
static const char sccsid[] = "@(#)rmpproto.c 8.1 (Berkeley) 6/4/93";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
@ -39,14 +39,17 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)utils.c 8.1 (Berkeley) 6/4/93
|
* from: @(#)utils.c 8.1 (Berkeley) 6/4/93
|
||||||
* $Id: utils.c,v 1.2 1997/06/29 19:00:29 steve Exp $
|
|
||||||
*
|
*
|
||||||
* From: Utah Hdr: utils.c 3.1 92/07/06
|
* From: Utah Hdr: utils.c 3.1 92/07/06
|
||||||
* Author: Jeff Forys, University of Utah CSS
|
* Author: Jeff Forys, University of Utah CSS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static const char sccsid[] = "@(#)utils.c 8.1 (Berkeley) 6/4/93";
|
static const char sccsid[] = "@(#)utils.c 8.1 (Berkeley) 6/4/93";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user