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