svn commit: r332588 - stable/11/etc/autofs

Edward Tomasz Napierala trasz at FreeBSD.org
Mon Apr 16 15:59:52 UTC 2018


Author: trasz
Date: Mon Apr 16 15:59:51 2018
New Revision: 332588
URL: https://svnweb.freebsd.org/changeset/base/332588

Log:
  MFC r326252:
  
  Add /etc/autofs/include_nis, a non-rewriting NIS map.

Added:
  stable/11/etc/autofs/include_nis
     - copied unchanged from r326252, head/etc/autofs/include_nis
Modified:
  stable/11/etc/autofs/Makefile
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/etc/autofs/Makefile
==============================================================================
--- stable/11/etc/autofs/Makefile	Mon Apr 16 15:58:53 2018	(r332587)
+++ stable/11/etc/autofs/Makefile	Mon Apr 16 15:59:51 2018	(r332588)
@@ -1,6 +1,7 @@
 # $FreeBSD$
 
 FILES=		include_ldap \
+		include_nis \
 		include_nis_nullfs \
 		special_hosts \
 		special_media \

Copied: stable/11/etc/autofs/include_nis (from r326252, head/etc/autofs/include_nis)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ stable/11/etc/autofs/include_nis	Mon Apr 16 15:59:51 2018	(r332588, copy of r326252, head/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


More information about the svn-src-all mailing list