#!/bin/bash # Trying to umount NDS share # See /var/ltsp/bin/umountHome declare –i CNT=0 declare RET_VAL # Try 10 times every 30 seconds (max. 5 minutes) # or until success. while [ $CNT -lt 10 ]; do /usr/local/bin/ncpumount $1 let RET_VAL=$? if [ RET_VAL –eq 0 ]; then break fi CNT=CNT+1 sleep 30 done # Don’t care exit 0