kernel - CAM cleanup 1/N - Remove ancient scsi pccard drivers ncv, nsp, stg
[dragonfly.git] / usr.sbin / rpc.ypupdated / ypupdate
blob471ee3f182783fe0de9fb9e6a6931101d3d2b474
1 #!/bin/sh
3 # This script is invoked by rpc.ypupdatedd to propagate NIS maps
4 # after the master map databases have been modified. It expects
5 # to be passed two arguments: the name of the map that was updated
6 # and the name of the domain where the map resides.
7 # These are passed to /var/yp/Makefile.
9 # Comment out the LOG=yes line to disable logging.
11 # $FreeBSD: src/usr.sbin/rpc.ypupdated/ypupdate,v 1.2 1999/08/28 01:19:44 peter Exp $
12 # $DragonFly: src/usr.sbin/rpc.ypupdated/ypupdate,v 1.2 2003/06/17 04:30:02 dillon Exp $
15 LOG=yes
16 LOGFILE=/var/yp/ypupdate.log
18 umask 077
20 if [ ! -f $LOGFILE ];
21 then
22 /usr/bin/touch $LOGFILE
23 echo "# Edit /usr/libexec/yppwupdate to disable" >> $LOGFILE
24 echo "# logging to this file from yppasswdd." >> $LOGFILE
25 echo -n "# Log started on: " >> $LOGFILE
26 /bin/date >> $LOGFILE
29 if [ ! $LOG ];
30 then
31 cd /var/yp/$2; /usr/bin/make -f ../Makefile $1 2>&1
32 else
33 cd /var/yp/$2; /usr/bin/make -f ../Makefile $1 >> $LOGFILE