source: trunk/packs/update/finish-update.sh @ 10881

Revision 10881, 1.9 KB checked in by ghudson, 26 years ago (diff)
Move responsibility for suppress-network-daemons, in.named, and config_afs to the init.d scripts, so that we can be called from do-update for a non-OS update. Take the version we're updating to as an argument, instead of picking it up from /etc/athena/version.
Line 
1#!/bin/sh
2# $Id: finish-update.sh,v 1.8 1997-12-06 21:32:12 ghudson Exp $
3
4# Copyright 1996 by the Massachusetts Institute of Technology.
5#
6# Permission to use, copy, modify, and distribute this
7# software and its documentation for any purpose and without
8# fee is hereby granted, provided that the above copyright
9# notice appear in all copies and that both that copyright
10# notice and this permission notice appear in supporting
11# documentation, and that the name of M.I.T. not be used in
12# advertising or publicity pertaining to distribution of the
13# software without specific, written prior permission.
14# M.I.T. makes no representations about the suitability of
15# this software for any purpose.  It is provided "as is"
16# without express or implied warranty.
17
18export PATH CPUTYPE
19CONFDIR=/etc/athena
20LIBDIR=/srvd/usr/athena/lib/update
21SERVERDIR=/var/server
22PATH=/os/bin:/os/etc:/srvd/etc/athena:/srvd/bin/athena:/os/usr/bin:/srvd/usr/athena/etc:/os/usr/ucb:/os/usr/bsd:$LIBDIR:/bin:/etc:/usr/bin:/usr/ucb:/usr/bsd
23HOSTTYPE=`/bin/athena/machtype`
24CPUTYPE=`/bin/athena/machtype -c`
25CONFCHG=/var/athena/update.confchg
26CONFVARS=/var/athena/update.confvars
27AUXDEVS=/var/athena/update.auxdevs
28OLDBINS=/var/athena/update.oldbins
29DEADFILES=/var/athena/update.deadfiles
30
31# We get one argument, the new workstation version we're updating to.
32newvers="$1"
33
34. $CONFDIR/rc.conf
35
36# Do auxiliary device installs.
37if [ -s "$AUXDEVS" ]; then
38        drvrs=`cat "$AUXDEVS"`
39        for i in $drvrs; do
40                /srvd/install/aux.devs/$i
41        done
42fi
43
44# Remove the version script state files.
45rm -f "$CONFCHG" "$CONFVARS" "$AUXDEVS" "$OLDBINS" "$DEADFILES"
46
47echo "Updating version"
48echo "Athena Workstation ($HOSTTYPE) Version $newvers `date`" >> \
49        ${CONFDIR}/version
50
51# Re-customize the workstation
52if [ "$PUBLIC" = "true" ]; then
53        rm -rf "$SERVERDIR"
54fi
55
56if [ -d "$SERVERDIR" ]; then
57        echo "Running mkserv."
58        /srvd/usr/athena/bin/mkserv -v update < /dev/null
59fi
Note: See TracBrowser for help on using the repository browser.