summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrpe <rpe@openbsd.org>2015-10-26 19:24:04 +0000
committerrpe <rpe@openbsd.org>2015-10-26 19:24:04 +0000
commit3986510ec8d73f265ef027a64ae732c286cd0b66 (patch)
treebfd19b2fec03230a668a24cec8249c3394361ef7
parentupdate regress suite for pledge (diff)
downloadwireguard-openbsd-3986510ec8d73f265ef027a64ae732c286cd0b66.tar.xz
wireguard-openbsd-3986510ec8d73f265ef027a64ae732c286cd0b66.zip
The hostname variable is not used since r1.99. Remove it and use
stripcom() output directly with the hostname command. OK deraadt@ krw@
-rw-r--r--etc/netstart7
1 files changed, 2 insertions, 5 deletions
diff --git a/etc/netstart b/etc/netstart
index 30f918936f4..c4ba1fb8511 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.157 2015/10/23 15:22:49 claudio Exp $
+# $OpenBSD: netstart,v 1.158 2015/10/26 19:24:04 rpe Exp $
# Turn off Strict Bourne shell mode.
set +o sh
@@ -185,10 +185,7 @@ fi
# /etc/myname contains my symbolic name.
if [ -f /etc/myname ]; then
- hostname=`stripcom /etc/myname`
- hostname $hostname
-else
- hostname=`hostname`
+ hostname "$(stripcom /etc/myname)"
fi
# Set the address for the loopback interface. Bringing the interface up,