aboutsummaryrefslogtreecommitdiff
path: root/sbin/slattach
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-09-18 14:06:38 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-09-18 14:06:38 +0000
commitf24b54a614f03dfeacb6c7d0fa82a4ddf011072b (patch)
tree47ce0e664cedbd86acbec2592800850de8de5e27 /sbin/slattach
parentb1d39b7c2ab68d341d251f1785d190adbef328dd (diff)
downloadsrc-f24b54a614f03dfeacb6c7d0fa82a4ddf011072b.tar.gz
src-f24b54a614f03dfeacb6c7d0fa82a4ddf011072b.zip
Change new -U option to -S to go the same way as startslip.
Notes
Notes: svn path=/head/; revision=10880
Diffstat (limited to 'sbin/slattach')
-rw-r--r--sbin/slattach/slattach.86
-rw-r--r--sbin/slattach/slattach.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/sbin/slattach/slattach.8 b/sbin/slattach/slattach.8
index 31606188d0a6..57ec88bec954 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 b6b3e0d1e712..b8e28a460331 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: