summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/importfiles.sh
blob: 61ad324adbed7c19aee99ad03dda516c33c27a52 (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. 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