summaryrefslogtreecommitdiff
path: root/etc/netstart
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2017-05-01 16:23:43 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2017-05-01 16:23:43 +0000
commitb8566000fe5c0e0115202cab5082aca21246d2dd (patch)
treef16957a9af263bfa4e5cff6dd7f8bd52cb1762ca /etc/netstart
parent86a03a84cd227a5c33de434471e64c94e72138bf (diff)
Revert r1.170 and remove the id==0 check.
The id binary is not available in nfs diskless setups at this point. reported by Andreas Kusalananda, thanks. discussed with deraadt@
Diffstat (limited to 'etc/netstart')
-rw-r--r--etc/netstart8
1 files changed, 1 insertions, 7 deletions
diff --git a/etc/netstart b/etc/netstart
index 8186ddbaffb..75cc2ee7b37 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.180 2017/05/01 14:23:29 rpe Exp $
+# $OpenBSD: netstart,v 1.181 2017/05/01 16:23:42 rpe Exp $
# Turn off Strict Bourne shell mode.
set +o sh
@@ -166,12 +166,6 @@ defaultroute() {
done
}
-# Make sure the invoking user has the right privileges.
-if (($(id -u) != 0)); then
- echo "${0##*/}: need root privileges"
- exit 1
-fi
-
# Get network related vars from rc.conf using the parsing routine from rc.subr.
FUNCS_ONLY=1 . /etc/rc.d/rc.subr
_rc_parse_conf