]>
Commit | Line | Data |
---|---|---|
de56407f | 1 | #! /bin/sh |
2 | TARFILE=/tmp/hesiod | |
51bf07bb | 3 | SRC_DIR=/etc/athena/_nameserver |
de56407f | 4 | DEST_DIR=/etc/athena/nameserver |
5 | if [ ! -d $SRC_DIR ]; then | |
6 | /bin/rm -f $SRC_DIR | |
7 | /bin/mkdir $SRC_DIR | |
8 | /bin/chmod 755 $SRC_DIR | |
9 | fi | |
51bf07bb | 10 | #if [ ! -d $DEST_DIR ]; then |
11 | # /bin/rm -f $DEST_DIR | |
12 | # /bin/mkdir $DEST_DIR | |
13 | # /bin/chmod 755 $DEST_DIR | |
14 | #fi | |
de56407f | 15 | cd $SRC_DIR |
16 | for file in `/bin/tar tf $TARFILE`; do | |
17 | if [ ./ = $file ]; then continue; fi | |
18 | /bin/tar xf $TARFILE $file | |
19 | if [ -s $file ]; then | |
20 | /bin/mv -f $file $DEST_DIR | |
21 | else | |
22 | /bin/rm -f $file | |
23 | fi | |
24 | done | |
51bf07bb | 25 | # The following three lines were changed by WES on 9/10/87. |
26 | # They may not be in the sources. | |
f89684dc | 27 | /bin/rm -f $TARFILE |
28 | kill -KILL `/bin/cat /etc/named.pid` | |
de56407f | 29 | |
f89684dc | 30 | csh -fc "unlimit; /etc/named" |
31 | ||
ceb34639 | 32 | |
de56407f | 33 | exit |
34 | # | |
35 | # $Source$ | |
36 | # $Header$ | |
37 | # |