diff options
author | trasz <trasz@FreeBSD.org> | 2018-04-16 15:59:51 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2018-04-16 15:59:51 +0000 |
commit | fde3994303af628e9188e20b0df6f00f9af878c0 (patch) | |
tree | 5d07c5811b8afdd6bbf07f7e2b85a2be90f413f7 /etc | |
parent | 30045011c2344fa8f1f18b83031c836277981b31 (diff) | |
download | FreeBSD-src-fde3994303af628e9188e20b0df6f00f9af878c0.zip FreeBSD-src-fde3994303af628e9188e20b0df6f00f9af878c0.tar.gz |
MFC r326252:
Add /etc/autofs/include_nis, a non-rewriting NIS map.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/autofs/Makefile | 1 | ||||
-rw-r--r-- | etc/autofs/include_nis | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/etc/autofs/Makefile b/etc/autofs/Makefile index 2f75c62..822e523 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 0000000..5289984 --- /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 |