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:
trasz 2017-11-27 12:50:26 +00:00
parent a5ff2845f3
commit 64382aa4e6
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