diff options
author | ache <ache@FreeBSD.org> | 1996-02-17 19:21:41 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-02-17 19:21:41 +0000 |
commit | 11d43035a036520de406b386b2021248a5c83936 (patch) | |
tree | 710f038c9338a65b1a78378772d96763f9e20916 /sbin/slattach/slattach.c | |
parent | e9a4f674d90661f3436ff997b54b3f194364dabe (diff) | |
download | FreeBSD-src-11d43035a036520de406b386b2021248a5c83936.zip FreeBSD-src-11d43035a036520de406b386b2021248a5c83936.tar.gz |
Call unit-command -1 <new> first time connected, close PR 569
Diffstat (limited to 'sbin/slattach/slattach.c')
-rw-r--r-- | sbin/slattach/slattach.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c index aa70b11..a115f3e 100644 --- a/sbin/slattach/slattach.c +++ b/sbin/slattach/slattach.c @@ -424,9 +424,6 @@ void configure_network() syslog(LOG_ERR, "ioctl(SLIOCGUNIT): %m"); exit_handler(1); } - /* don't compare unit numbers if this is the first time to attach. */ - if (unit < 0) - unit = new_unit; /* iff the unit number changes either invoke config_cmd or punt. */ if (config_cmd) { char *s; @@ -438,6 +435,9 @@ void configure_network() free (s); unit = new_unit; } else { + /* don't compare unit numbers if this is the first time to attach. */ + if (unit < 0) + unit = new_unit; if (new_unit != unit) { syslog(LOG_ERR, "slip unit changed from sl%d to sl%d, but no -u CMD was specified!"); exit_handler(1); |