FIXES 21754
rc file hack to wait for salvage to finish
OPTIONS=AUTOMATIC
#OPTIONS=$SMALL
+# force startup script to wait for salvage to finish before proceeding
+# with machine boot
+WAIT_FOR_SALVAGE=no
+
# you should never need to change these settings
AFSDIR=/afs
CACHEDIR=/usr/vice/cache
if is_on $AFS_SERVER && test -x /usr/afs/bin/bosserver ; then
/usr/afs/bin/bosserver
test "$afs_rh" && touch /var/lock/subsys/afs
+ if is_on $WAIT_FOR_SALVAGE; then
+ # wait for fileserver to finish salvaging
+ sleep 10
+ while /usr/bin/bos status localhost fs 2>&1 | grep 'Auxiliary.*salvaging'; do
+ echo "Waiting for salvager to finish..... "
+ sleep 10
+ done
+ fi
fi
# Start AFS client