Copyright (C) 2000-2012 |
GNU Info (am-utils.info)NIS mapsNIS maps -------- When using NIS (formerly YP), an Amd map is implemented directly by the underlying NIS map. Comments and continuation lines are _not_ supported in the automounter and must be stripped when constructing the NIS server's database. NIS maps have a default cache mode of `all' (Note: Automount Filesystem). The following rule illustrates what could be added to your NIS `Makefile', in this case causing the `amd.home' map to be rebuilt: $(YPTSDIR)/amd.home.time: $(ETCDIR)/amd.home -@sed -e "s/#.*$$//" -e "/^$$/d" $(ETCDIR)/amd.home | \ awk '{ \ for (i = 1; i <= NF; i++) \ if (i == NF) { \ if (substr($$i, length($$i), 1) == "\\") \ printf("%s", substr($$i, 1, length($$i) - 1)); \ else \ printf("%s\n", $$i); \ } \ else \ printf("%s ", $$i); \ }' | \ $(MAKEDBM) - $(YPDBDIR)/amd.home; \ touch $(YPTSDIR)/amd.home.time; \ echo "updated amd.home"; \ if [ ! $(NOPUSH) ]; then \ $(YPPUSH) amd.home; \ echo "pushed amd.home"; \ else \ : ; \ fi Here `$(YPTSDIR)' contains the time stamp files, and `$(YPDBDIR)' contains the dbm format NIS files. automatically generated by info2www version 1.2.2.9 |