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
This commit is contained in:
parent
a5ff2845f3
commit
64382aa4e6
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
FILES= include_ldap \
|
||||
include_nis \
|
||||
include_nis_nullfs \
|
||||
special_hosts \
|
||||
special_media \
|
||||
|
14
etc/autofs/include_nis
Normal file
14
etc/autofs/include_nis
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user