From f497052bcf990b7ec3f31f2c49bb171651dfb95a Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Mon, 27 Nov 2017 12:50:26 +0000 Subject: [PATCH] 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 --- etc/autofs/Makefile | 1 + etc/autofs/include_nis | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 etc/autofs/include_nis diff --git a/etc/autofs/Makefile b/etc/autofs/Makefile index 2f75c6207dc7..822e523c9f15 100644 --- a/etc/autofs/Makefile +++ b/etc/autofs/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ FILES= include_ldap \ + include_nis \ include_nis_nullfs \ special_hosts \ special_media \ diff --git a/etc/autofs/include_nis b/etc/autofs/include_nis new file mode 100644 index 000000000000..5289984639a1 --- /dev/null +++ b/etc/autofs/include_nis @@ -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