home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!ftpbox!mothost!lmpsbbs!rover!ralphw
- From: ralphw@comm.mot.com (Ralph Warchol STC Sys-Admin)
- Subject: Re: automounter vs auto.master
- Reply-To: ralphw@comm.mot.com
- Organization: Motorola LMPS Software Technology Center
- Date: Wed, 2 Sep 1992 14:00:41 GMT
- Message-ID: <1992Sep2.140041.15741@lmpsbbs.comm.mot.com>
- References: <1811ojINNe3c@cs.utexas.edu>
- Sender: news@lmpsbbs.comm.mot.com (Net News)
- Nntp-Posting-Host: 145.1.104.17
- Lines: 35
-
- In article 1811ojINNe3c@cs.utexas.edu, fletcher@cs.utexas.edu (Fletcher Mattox) writes:
- >How does one get the automounter to notice that you have changed
- >auto.master?
- >
- >As best I can tell, you have to actually kill and restart the
- >automounter (yuck). Is this really true? If so, it orphans any
- >existing auto-mounted file systems, so they are not unmounted until
- >the next reboot. So you may as well reboot the machine anyway.
- >Please tell me it ain't so.
- >
- >Thanks
- >Fletcher
-
- If you add auto.master to your NIS maps, the changes are seen by automounter after a make.
- Here's the lines for your Makefile to do it:
-
- auto.master.time: $(DIR)/auto.master
- $(MAKEDBM) $(DIR)/auto.master $(YPDBDIR)/$(DOM)/auto.master;
- @touch auto.master.time;
- @echo "updated auto.master";
- @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) auto.master; fi
- @if [ ! $(NOPUSH) ]; then echo "pushed auto.master"; fi
-
- Add this line to bottom of the Makefile:
-
- auto.master: auto.master.time
-
- And add auto.master to your all: statement.
-
- Good luck!
- ---
- Ralph P. Warchol, Systems Administrator | ralphw@comm.mot.com
- Software Technology Center - LMPS Research | Ph: 708-576-8519
- Motorola Inc., Schaumburg, Illinois | Fax: 708-576-3131
-
-