Changeset 197

Show
Ignore:
Timestamp:
06/12/10 22:37:33 (14 years ago)
Author:
broder
Message:

Update AFS configuration without restarting AFS.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/fink/main/finkinfo/macathena-afs-config.info

    r186 r197  
    11Package: macathena-afs-config 
    2 Version: 184 
     2Version: 196 
    33Revision: 1 
    44Source: http://macathena.mit.edu/dist/afs-config-svn%v.tar.gz 
     
    77License: Public Domain 
    88Description: AFS configuration for MacAthena 
    9 Source-MD5: af2c2499a61eea204dcedae68957439a 
     9Source-MD5: d1412db9d53ef79315b4f4e211ac5d52 
    1010DocFiles: copyright 
    1111ConfFiles: /private/var/db/openafs/etc/CellAlias.macathena /private/var/db/openafs/etc/CellServDB.macathena /private/var/db/openafs/etc/ThisCell.macathena /private/var/db/openafs/etc/config/afs.conf.macathena /private/var/db/openafs/etc/config/settings.plist.macathena 
     
    2323        cp afs.conf.macathena %d/private/var/db/openafs/etc/config/ 
    2424        cp settings.plist.macathena %d/private/var/db/openafs/etc/config/ 
     25 
     26        mkdir -p %i/libexec/macathena-afs-config 
     27        cp update-cellservdb %i/libexec/macathena-afs-config 
    2528<< 
    2629PostInstScript: << 
     
    3336        divert_link /private/var/db/openafs/etc/config/afs.conf 
    3437        divert_link /private/var/db/openafs/etc/config/settings.plist 
    35          
    36         /Library/StartupItems/OpenAFS/OpenAFS restart 
     38 
     39        if [ -n "$(mount -t afs)" ]; then 
     40                %p/libexec/macathena-afs-config/update-cellservdb 
     41 
     42                . /private/var/db/openafs/etc/config/afs.conf 
     43                fs sysname $AFS_SYSNAME || true 
     44        fi 
    3745<< 
    3846PreRmScript: << 
     
    4654        undivert_unlink /private/var/db/openafs/etc/config/settings.plist 
    4755         
    48         /Library/StartupItems/OpenAFS/OpenAFS restart 
     56        if [ -n "$(mount -t afs)" ]; then 
     57                %p/libexec/macathena-afs-config/update-cellservdb 
     58 
     59                . /private/var/db/openafs/etc/config/afs.conf 
     60                fs sysname $AFS_SYSNAME || true 
     61        fi 
    4962<<