Small NIS fixes:

1) ypserv is started with nis_serverflags, not yppasswddflags (that's what
   I get for cutting & pasting without paying attention).

2) ypbind can also be started with arguments, so turn nis_client to
   nis_clientflags.
This commit is contained in:
Bill Paul 1995-02-08 16:42:12 +00:00
parent 2b6645c034
commit 17936913ce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6241
2 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: netstart,v 1.18 1995/02/03 23:54:07 wpaul Exp $
# $Id: netstart,v 1.19 1995/02/07 20:52:35 ats Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
defaultrouter=NO
@ -13,7 +13,7 @@ sendmail_flags="-bd -q30m"
amdflags="NO"
nfs_client=NO
nfs_server=NO
nis_client="NO"
nis_clientflags="NO"
nis_serverflags="NO"
yppasswddflags="NO"
#yppasswddflags"-m /var/yp/master.passwd -s -f"

View File

@ -23,9 +23,9 @@ if [ X"${kerberos_server}" = X"YES" ]; then
fi
fi
# Start if we're an NIS server.
# Start ypserv if we're an NIS server.
if [ X"${nis_serverflags}" != X"NO" ]; then
echo -n ' ypserv'; ypserv $nis_yppasswddflags
echo -n ' ypserv'; ypserv $nis_serverflags
fi
# Run yppasswdd only on the NIS master server
@ -33,9 +33,9 @@ if [ X"${yppasswddflags}" != X"NO" ]; then
echo -n ' yppasswdd'; yppasswdd $yppasswddflags
fi
# Run ypbind if we're an NIS client
if [ X"${nis_client}" = X"YES" ]; then
echo -n ' ypbind'; ypbind
# Start ypbind if we're an NIS client
if [ X"${nis_clientflags}" != X"NO" ]; then
echo -n ' ypbind'; ypbind $nis_clientflags
fi
# For loading fonts/keyboard example look in /usr/share/examples/syscons