summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2017-11-27 12:50:26 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2017-11-27 12:50:26 +0000
commitf497052bcf990b7ec3f31f2c49bb171651dfb95a (patch)
tree8bf61756507d0c7417ca9e6483714f10c961e781
parent61cfb3db4cf12bb3756006024550911174e869c9 (diff)
Notes
-rw-r--r--etc/autofs/Makefile1
-rw-r--r--etc/autofs/include_nis14
2 files changed, 15 insertions, 0 deletions
diff --git a/etc/autofs/Makefile b/etc/autofs/Makefile
index 2f75c6207dc77..822e523c9f154 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 0000000000000..5289984639a10
--- /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