4 # The following exit codes are defined and MUST BE CONSISTENT with the
5 # error codes the library uses:
6 MR_MISSINGFILE=47836473
12 TARFILE=/var/tmp/zephyr.out
14 # Alert if the tar file does not exist
15 test -r $TARFILE || exit $MR_MISSINGFILE
17 # Make a temporary directory to unpack the tar file into
18 mkdir /etc/athena/zephyr/acl.new
19 cd /etc/athena/zephyr/acl.new || exit $MR_MKCRED
20 tar xf $TARFILE || exit $MR_TARERR
22 # Copy over each file which is new or has changed
24 if [ -f ../acl/$file ]; then
25 if cmp -s $file ../acl/$file; then
35 # HUP zephyrd if needed
38 pid=`ps -ef | awk '/[^\]]zephyrd/ { print $2; }'`
45 rm -rf /etc/athena/zephyr/acl.new
46 test -f $TARFILE && rm -f $TARFILE
47 test -f $0 && rm -f $0