#!/bin/sh
# Tell mdutil (i.e., Spotlight) not to index a file volume:
#    noindex.sh /Volume/SomeName
# Unfortunately, you may have to mount your SomeName disk one time  for  this
# to  work,  and  by  the  time  you run this script, mdutil may have already
# started up.  So you may have to hunt down the mdutil process and "kill  -9"
# it  the  first  time in order to unmount the volume (and get your processor
# back), else unmount will say it's in use.

mdutil -E -i off "$1"
