Date: Mon, 27 Nov 2017 12:50:26 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326252 - head/etc/autofs Message-ID: <201711271250.vARCoQVI034972@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Mon Nov 27 12:50:26 2017 New Revision: 326252 URL: https://svnweb.freebsd.org/changeset/base/326252 Log: 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 Added: head/etc/autofs/include_nis (contents, props changed) Modified: head/etc/autofs/Makefile Modified: head/etc/autofs/Makefile ============================================================================== --- head/etc/autofs/Makefile Mon Nov 27 12:46:18 2017 (r326251) +++ head/etc/autofs/Makefile Mon Nov 27 12:50:26 2017 (r326252) @@ -1,6 +1,7 @@ # $FreeBSD$ FILES= include_ldap \ + include_nis \ include_nis_nullfs \ special_hosts \ special_media \ Added: head/etc/autofs/include_nis ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/etc/autofs/include_nis Mon Nov 27 12:50:26 2017 (r326252) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711271250.vARCoQVI034972>