summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1997-06-17 10:20:05 +0000
committerniklas <niklas@openbsd.org>1997-06-17 10:20:05 +0000
commit13f8231078e54ef0846f1af1833daa87c05b709f (patch)
tree6bd5d7c277371d607231844958e4c9c00dc03ebd
parentAdd a -d flag which takes the directory where the YP password files are. (diff)
downloadwireguard-openbsd-13f8231078e54ef0846f1af1833daa87c05b709f.tar.xz
wireguard-openbsd-13f8231078e54ef0846f1af1833daa87c05b709f.zip
Put in hooks to start rpc.yppasswdd with flags
-rw-r--r--etc/netstart3
-rw-r--r--etc/rc5
2 files changed, 5 insertions, 3 deletions
diff --git a/etc/netstart b/etc/netstart
index 10e98720b1e..9d335c748f4 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.18 1997/04/15 09:42:33 deraadt Exp $
+# $OpenBSD: netstart,v 1.19 1997/06/17 10:20:06 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=
+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
ipfilter_rules=/etc/ipf.rules # Rules for IP packet filtering
diff --git a/etc/rc b/etc/rc
index 349a7b8ca37..8868379983b 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.34 1997/04/22 23:04:57 deraadt Exp $
+# $OpenBSD: rc,v 1.35 1997/06/17 10:20:05 niklas Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -137,7 +137,8 @@ if [ -d /var/yp/binding ]; then
sed -e 's/^Name: //'`
fi
if [ "$_host2" = "$_host1" ]; then
- echo -n ' rpc.yppasswdd'; rpc.yppasswdd
+ echo -n ' rpc.yppasswdd'
+ rpc.yppasswdd ${yppasswdd_flags}
fi
fi
fi