summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/importfiles.sh
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-09-17 18:19:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-09-17 18:19:27 (GMT)
commit68d5862f26515b2ec6b3d41d9ea97953284bf44e (patch)
treeabb767482c41b5d2359ade926aedeb6e2fed140b /abs/core/LinHES-system/importfiles.sh
parent2c5a67ec9f7176f022449415a48f48d89cf0afad (diff)
downloadlinhes_pkgbuild-68d5862f26515b2ec6b3d41d9ea97953284bf44e.zip
linhes_pkgbuild-68d5862f26515b2ec6b3d41d9ea97953284bf44e.tar.gz
linhes_pkgbuild-68d5862f26515b2ec6b3d41d9ea97953284bf44e.tar.bz2
LinHES-system: msg_daemon.py: fix osd flash to the right before it scrolls into place by moving osd off screen before showing
Diffstat (limited to 'abs/core/LinHES-system/importfiles.sh')
-rwxr-xr-xabs/core/LinHES-system/importfiles.sh15
1 files changed, 4 insertions, 11 deletions
diff --git a/abs/core/LinHES-system/importfiles.sh b/abs/core/LinHES-system/importfiles.sh
index 84f1ab5..61ad324 100755
--- a/abs/core/LinHES-system/importfiles.sh
+++ b/abs/core/LinHES-system/importfiles.sh
@@ -1,18 +1,11 @@
#!/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 &
+ 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/
- 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 &
+ msg_client.py --kill
+ msg_client.py --msg "Copied videos from $DVD_or_CD to /myth/video"
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 &
+ msg_client.py --msg "No optical media found. If you just inserted media please wait a moment and try again.|middle"
fi