#!/bin/sh
# $Header: /mit/netbsd/dev/nfs-install/RCS/update.sh,v 1.4 1999/02/02 08:06:16 ghudson Exp $

PATH=/bin:/usr/athena/etc
export PATH

nfsroot=/u3/netbsd-install
afssys=/afs/sipb.mit.edu/system/i386_nbsd1
nfssys=$nfsroot/sipb.mit.edu/system/i386_nbsd1
opts="-q -nosrcrules -nodstrules -a $nfsroot/rconf"

# Update packs.  The synctree of os-1.3.2 routinely fails on the
# zoneinfo files since that directory is mode 555, so discard error
# output for the os packs.
synctree $opts -s $afssys/install-1.3.2 -d $nfssys/install-1.3.2 > /dev/null
synctree $opts -s $afssys/os-1.3.2 -d $nfssys/os-1.3.2 >/dev/null 2>&1
synctree $opts -s $afssys/srvd-8.2 -d $nfssys/srvd-8.2 > /dev/null

# Update CellServDB and SuidCells.
cd $nfsroot/athena.mit.edu/service
rm -f CellServDB.new SuidCells.new
cp -p /afs/athena.mit.edu/service/CellServDB CellServDB.new
[ -s CellServDB.new ] && mv CellServDB.new CellServDB
cp -p /afs/athena.mit.edu/service/SuidCells SuidCells.new
[ -s SuidCells.new ] && mv SuidCells.new SuidCells
