summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/importfiles.sh
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-09-16 22:08:01 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-09-16 22:08:01 (GMT)
commit2c5a67ec9f7176f022449415a48f48d89cf0afad (patch)
tree5df6f12de751b985abc7e8a0661fa7821dbe3696 /abs/core/LinHES-system/importfiles.sh
parent13db4e5f492412b8127322169ffc8e75c3ea4ef4 (diff)
downloadlinhes_pkgbuild-2c5a67ec9f7176f022449415a48f48d89cf0afad.zip
linhes_pkgbuild-2c5a67ec9f7176f022449415a48f48d89cf0afad.tar.gz
linhes_pkgbuild-2c5a67ec9f7176f022449415a48f48d89cf0afad.tar.bz2
LinHES-system: move get_airplay_key, importfile.sh, myth2mkv, myth2mp3, and ripD_eject.sh from linhes-scripts
Diffstat (limited to 'abs/core/LinHES-system/importfiles.sh')
-rwxr-xr-xabs/core/LinHES-system/importfiles.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/abs/core/LinHES-system/importfiles.sh b/abs/core/LinHES-system/importfiles.sh
new file mode 100755
index 0000000..84f1ab5
--- /dev/null
+++ b/abs/core/LinHES-system/importfiles.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+export FONT="-adobe-helvetica-bold-*-*-*-34-*-*-*-*-*-*-*"
+
+DVD_or_CD=`cat /proc/mounts |grep iso9660|awk '{print $2}'|tail -1`
+if [ "$DVD_or_CD" != "" ]; then
+ echo "Copying files from $DVD_or_CD to /myth/video." > /tmp/screens
+ echo "This could take several minutes, depending on the" >> /tmp/screens
+ echo "speed and size of your optical media." >> /tmp/screens
+ cat /tmp/screens | osd_cat --font=$FONT --shadow=3 --pos=middle --align=centre --color=yellow --delay=0 &
+ /bin/cp -R $DVD_or_CD/* /myth/video/
+ killall osd_cat
+ echo "Copied videos from $DVD_or_CD to /myth/video" > /tmp/screens
+ cat /tmp/screens | osd_cat --font=$FONT --shadow=3 --pos=middle --align=centre --color=yellow --delay=2 &
+else
+ echo "No optical media found. If you just inserted" > /tmp/screens
+ echo "your media, please wait a moment and try again." >> /tmp/screens
+ cat /tmp/screens | osd_cat --font=$FONT --shadow=3 --pos=middle --align=centre --color=yellow --delay=5 &
+fi