#!/bin/bash DVD_or_CD=`cat /proc/mounts |grep iso9660|awk '{print $2}'|tail -1` if [ "$DVD_or_CD" != "" ]; then msg_client.py --msg "Copying files from $DVD_or_CD to /myth/video. Please wait..." --timeout 900 /bin/cp -R $DVD_or_CD/* /myth/video/ msg_client.py --kill msg_client.py --msg "Copied videos from $DVD_or_CD to /myth/video" else msg_client.py --msg "No optical media found. If you just inserted media please wait a moment and try again.|middle" fi