2 # OpenAFS uninstallation script for Linux
3 # openafs-tools, Version 1.2.2
5 # Copyright 2001, International Business Machines Corporation and others.
8 # This software has been released under the terms of the IBM Public
9 # License. For details, see the LICENSE file in the top-level source
10 # directory or online at http://www.openafs.org/dl/license10.html
12 # the directory with the openafs-tools files:
13 afscodeFileDir=/usr/afs/tools/install/
15 echo "Uninstall" > $afscodeFileDir/.afs_state
16 echo "begin" >> $afscodeFileDir/.afs_state
17 bosserver_process=$(ps -Ao pid,cmd | grep boss)
18 kill ${bosserver_process%% /*}
20 rm -rf /etc/rc.d/rc*.d/*afs*
21 perl $afscodeFileDir/write_pam.pl disable
22 rm -f /lib/security/pam_afs.so
27 rm -f /usr/vice/etc/CellServDB
28 rm -f /usr/vice/etc/ThisCell
29 rm -f /usr/vice/etc/AFSLog
30 rm -rf /usr/vice/cache
32 echo "Uninstall" > $afscodeFileDir/.afs_state
33 echo "complete" >> $afscodeFileDir/.afs_state