diff options
author | Holger Brueckner <darks@gentoo.org> | 2001-10-24 18:01:59 +0000 |
---|---|---|
committer | Holger Brueckner <darks@gentoo.org> | 2001-10-24 18:01:59 +0000 |
commit | 9454b744d472e8037fe39aed1cd10e2a9dfc1732 (patch) | |
tree | ee37490f7db701b77124e7e6595f4b940b1c03e9 /net-fs/openafs | |
parent | Tod Neidt's moldy ebuild. (diff) | |
download | historical-9454b744d472e8037fe39aed1cd10e2a9dfc1732.tar.gz historical-9454b744d472e8037fe39aed1cd10e2a9dfc1732.tar.bz2 historical-9454b744d472e8037fe39aed1cd10e2a9dfc1732.zip |
exit/return fixes
Diffstat (limited to 'net-fs/openafs')
-rw-r--r-- | net-fs/openafs/files/afs.rc.rc6 | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/net-fs/openafs/files/afs.rc.rc6 b/net-fs/openafs/files/afs.rc.rc6 index cea7ec992505..a785544d1ff6 100644 --- a/net-fs/openafs/files/afs.rc.rc6 +++ b/net-fs/openafs/files/afs.rc.rc6 @@ -41,7 +41,7 @@ check_ext2() { then echo ">>> PLEASE CREATE A EXT2 (no reiserfs) PARTITION (of aprox. 200M)" echo ">>> AND MOUNT IT TO /USR/VICE/CACHE !!!" - exit 1 + return 1 fi } @@ -151,7 +151,7 @@ load_client() { if [ ! -f $MODLOADDIR/$LIBAFS ] ; then echo AFS module $MODLOADDIR/$LIBAFS does not exist. Not starting AFS. - exit 1 + return 1 fi # use the prefix command if required @@ -162,7 +162,10 @@ load_client() { start(){ # Load kernel extensions - check_ext2 + if check_ext2 ; then : + else + eend 1 "Error: No ext2 partition for afs cache" + fi check_cacheinfo ebegin "Starting AFS services" @@ -170,7 +173,7 @@ start(){ if load_client ; then : else echo Failed to load AFS client, not starting AFS services. - eend 1 "Error Starting AFS client" + eend "Error Starting AFS client" fi # Start bosserver, it if exists @@ -183,9 +186,9 @@ start(){ /usr/sbin/afsd ${OPTIONS} 1>&2 STATUS=$? # Start AFS version of inetd.conf if present. - if test -f /usr/afsws/etc/inetd.conf -a -x /usr/afsws/etc/inetd.afs ; then - /usr/afsws/etc/inetd.afs /usr/afsws/etc/inetd.conf - fi + #if test -f /usr/afsws/etc/inetd.conf -a -x /usr/afsws/etc/inetd.afs ; then + # /usr/afsws/etc/inetd.afs /usr/afsws/etc/inetd.conf + #fi $AFS_POST_INIT fi eend $STATUS "Error starting AFS" |