summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1997-06-17 13:13:47 +0000
committerniklas <niklas@openbsd.org>1997-06-17 13:13:47 +0000
commitd6518a3f0b646a38a2b5c2801fe5cc833b2b1b76 (patch)
treee76ba7e52a8312f701ef01b00ee36212486990b9
parentcareful with stackgap handling in execve() (diff)
downloadwireguard-openbsd-d6518a3f0b646a38a2b5c2801fe5cc833b2b1b76.tar.xz
wireguard-openbsd-d6518a3f0b646a38a2b5c2801fe5cc833b2b1b76.zip
Put in hooks to start ypserv with flags
-rw-r--r--etc/netstart3
-rw-r--r--etc/rc4
2 files changed, 4 insertions, 3 deletions
diff --git a/etc/netstart b/etc/netstart
index 9d335c748f4..57d4da1e9d5 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.19 1997/06/17 10:20:06 niklas Exp $
+# $OpenBSD: netstart,v 1.20 1997/06/17 13:13:48 niklas Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=-q
@@ -28,6 +28,7 @@ lpd=NO # printing daemons
# miscellaneous other flags
# only used if the appropriate server is marked YES above
gated_flags=
+ypserv_flags= # E.g. -1 for YP v1, -d for DNS etc
yppasswdd_flags= # "-d /etc/yp" if passwd files is in /etc/yp
amd_dir=/amd # AMD's mount directory
amd_master=/etc/amd/master # AMD 'master' map
diff --git a/etc/rc b/etc/rc
index 8868379983b..b3586ad8c34 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.35 1997/06/17 10:20:05 niklas Exp $
+# $OpenBSD: rc,v 1.36 1997/06/17 13:13:47 niklas Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -117,7 +117,7 @@ fi
if [ -d /var/yp/binding ]; then
if [ -d /var/yp/`domainname` ]; then
# yp server capabilities needed...
- echo -n ' ypserv'; ypserv
+ echo -n ' ypserv'; ypserv ${ypserv_flags}
#echo -n ' ypxfrd'; ypxfrd
fi