3 # keeps trying to mount the cd on a mac mini to overcome
4 # a new bug in itunes seen as of osx leopard upgrade.
6 mountpoint=/Volumes/mounty_cd
8 echo "$(date_stringer): starting cd mounter..."
11 if [ ! -d $mountpoint ]; then
15 found_device=$(mount|grep -i cddafs)
16 if [ -z "$found_device" ]; then
17 echo "$(date_stringer): cd not mounted--pausing before attempt..."
19 echo "$(date_stringer): cd not mounted--now trying to mount..."
20 mount -t cddafs /dev/disk1 $mountpoint
22 echo "$(date_stringer): cd already mounted--ignoring it."