diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2017-11-12 21:58:01 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2017-11-12 21:58:01 +0000 |
commit | c657797bbaa168202e9fa15733d61b30a15417fb (patch) | |
tree | 41b9c5fdf6e9b5d810a3d04d486b668c34fb6b2f /etc/netstart | |
parent | ada5306e598084a2b96783096ca767ab4ea51504 (diff) |
Remove HN_DIR variable and expand it in the only place it was used. It
currently serves no purpose.
ok rpe, agreement from deraadt and halex
Diffstat (limited to 'etc/netstart')
-rw-r--r-- | etc/netstart | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/netstart b/etc/netstart index 3b8c6a275c5..1d2d16b2208 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.186 2017/07/25 21:17:11 rpe Exp $ +# $OpenBSD: netstart,v 1.187 2017/11/12 21:58:00 tb Exp $ # Turn off Strict Bourne shell mode. set +o sh @@ -75,7 +75,7 @@ parse_hn_line() { # Start a single interface. # Usage: ifstart if1 ifstart() { - local _if=$1 _hn=$HN_DIR/hostname.$1 _cmds _i=0 _line _stat + local _if=$1 _hn=/etc/hostname.$1 _cmds _i=0 _line _stat set -A _cmds # Interface names must be alphanumeric only. We check to avoid @@ -163,7 +163,6 @@ defaultroute() { FUNCS_ONLY=1 . /etc/rc.d/rc.subr _rc_parse_conf -HN_DIR=${HN_DIR:-/etc} PRINT_ONLY=false USAGE="USAGE: ${0##*/} [-n] [interface ...]" V4_DHCPCONF=false |