aboutsummaryrefslogtreecommitdiff
path: root/sbin/slattach/slattach.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1996-02-17 19:21:41 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1996-02-17 19:21:41 +0000
commit438a2cf9d4bcbc7f238a135b0c6b03213dc8d97f (patch)
tree710f038c9338a65b1a78378772d96763f9e20916 /sbin/slattach/slattach.c
parent1494289f5b6a71f56b3526cbf0ea5406c22517e1 (diff)
Notes
Diffstat (limited to 'sbin/slattach/slattach.c')
-rw-r--r--sbin/slattach/slattach.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c
index aa70b11d97d6..a115f3e50ac6 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);