Add /etc/autofs/include_nis, a non-rewriting NIS map.

Submitted by:	G. Paul Ziemba
Suggested by:	asomers@
MFC after:	2 weeks
Sponsored by:	DARPA, AFRL
This commit is contained in:
Edward Tomasz Napierala 2017-11-27 12:50:26 +00:00
parent 61cfb3db4c
commit f497052bcf
2 changed files with 15 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# $FreeBSD$
FILES= include_ldap \
include_nis \
include_nis_nullfs \
special_hosts \
special_media \

14
etc/autofs/include_nis Normal file
View File

@ -0,0 +1,14 @@
#!/bin/sh
#
# $FreeBSD$
#
if [ -n "$2" ]; then
ypmatch $2 $1
exit 0
fi
if [ -n "$1" ]; then
ypcat -k $1
exit 0
fi