From 6b2ee7716a791402c70fcb7985e3e55f11fda156 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 18 Sep 1995 14:06:38 +0000 Subject: Change new -U option to -S to go the same way as startslip. --- sbin/slattach/slattach.8 | 6 +++--- sbin/slattach/slattach.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'sbin/slattach') diff --git a/sbin/slattach/slattach.8 b/sbin/slattach/slattach.8 index 3160618..57ec88b 100644 --- a/sbin/slattach/slattach.8 +++ b/sbin/slattach/slattach.8 @@ -31,7 +31,7 @@ .\" .\" @(#)slattach.8 6.4 (Berkeley) 3/16/91 .\" -.\" $Header: /home/ncvs/src/sbin/slattach/slattach.8,v 1.4 1995/03/12 15:04:16 joerg Exp $ +.\" $Header: /home/ncvs/src/sbin/slattach/slattach.8,v 1.5 1995/09/18 13:33:28 ache Exp $ .\" .Dd April 4, 1993 .Dt SLATTACH 8 @@ -54,7 +54,7 @@ .Op Fl z .Op Fl K Ar keepalive .Op Fl O Ar outfill -.Op Fl U Ar unit +.Op Fl S Ar unit .Ar ttyname .Sh DESCRIPTION .Nm Slattach @@ -114,7 +114,7 @@ Set SLIP "out fill" timeout in seconds. It cause at least one FRAME_END will be sended during this timeout. Needed for "keep alive" timeout on other side. Default value is no timeout. -.It Fl U Ar unit +.It Fl S Ar unit Set SLIP unit number directly. Use with caution, no check for two interfaces with same number made. Default is dynamic assignment. diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c index b6b3e0d..b8e28a4 100644 --- a/sbin/slattach/slattach.c +++ b/sbin/slattach/slattach.c @@ -100,7 +100,7 @@ char *exit_cmd = 0; /* command to exec before exiting. */ static char usage_str[] = "\ usage: %s [-acfhlnz] [-e command] [-r command] [-s speed] [-u command] \\\n\ - [-K timeout] [-O timeout] [-U unit] device\n\ + [-K timeout] [-O timeout] [-S unit] device\n\ -a -- autoenable VJ compression\n\ -c -- enable VJ compression\n\ -e ECMD -- run ECMD before exiting\n\ @@ -114,7 +114,7 @@ usage: %s [-acfhlnz] [-e command] [-r command] [-s speed] [-u command] \\\n\ -z -- run RCMD upon startup irrespective of carrier\n\ -K # -- set SLIP \"keep alive\" timeout (default 0)\n\ -O # -- set SLIP \"out fill\" timeout (default 0)\n\ - -U # -- set SLIP unit number (default is dynamic)\n\ + -S # -- set SLIP unit number (default is dynamic)\n\ "; int main(int argc, char **argv) @@ -124,7 +124,7 @@ int main(int argc, char **argv) extern int optind; char *cp; - while ((option = getopt(argc, argv, "ace:fhlnr:s:u:zK:O:U:")) != EOF) { + while ((option = getopt(argc, argv, "ace:fhlnr:s:u:zK:O:S:")) != EOF) { switch (option) { case 'a': slflags |= IFF_LINK2; @@ -167,7 +167,7 @@ int main(int argc, char **argv) case 'O': outfill = atoi(optarg); break; - case 'U': + case 'S': sl_unit = atoi(optarg); break; default: -- cgit v1.1