summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/importfiles.sh
blob: eb0e863aaa600b829fb6b44247e23d5d5c430680 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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..." --timeout 3600
    /bin/cp -R $DVD_or_CD/* /myth/video/
    msg_client.py --kill
    msg_client.py --msg "Finished copying 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