#!/bin/bash
# samba /etc/fstab good mount options rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1 (rsize and wsize) to be tuned
# Script to prevent samba CIFS mount hangs
# to make it start on boot /etc/cron.d/cifs_keepalive:
# */3 *   *   *   *   root    /home/bcait/bca_util/bin/cifs_keepalive >/dev/null 2>&1
while read spot; do
   touch --no-create "${spot}/.cifs_keepalive"
done <<< "$(mount | awk '/cifs/{ print $3; }')"
