summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/LinHES-session
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/LinHES-system/LinHES-session')
-rwxr-xr-xabs/core/LinHES-system/LinHES-session21
1 files changed, 20 insertions, 1 deletions
diff --git a/abs/core/LinHES-system/LinHES-session b/abs/core/LinHES-system/LinHES-session
index e4833fa..8b5bac4 100755
--- a/abs/core/LinHES-system/LinHES-session
+++ b/abs/core/LinHES-system/LinHES-session
@@ -47,7 +47,15 @@ export MALLOC_CHECK_=0
}
function msg_osd(){
- echo -e "$1" | osd_cat --pos=middle --align=center --offset=200 --delay=5 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font &
+ ps -ef | grep -v grep | grep osd_cat
+ rc=$?
+ while [ $rc = 0 ]
+ do
+ ps -ef | grep -v grep | grep osd_cat
+ rc=$?
+ done
+
+ echo -e "$1" | osd_cat --pos=middle --align=center --offset=200 --delay=5 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font
}
function msg_pyosd(){
@@ -164,6 +172,16 @@ function show_help_tip(){
fi
}
+function notify_scan(){
+ sleep 2
+ if [ -e /tmp/scan_report ]
+ then
+ msg "\n\nNew storage found. \nRun /usr/LH/bin/add_storage.py for details"
+ fi
+
+ }
+
+
function update_apple_trailers(){
#update apple trailers
if [[ x$RunFrontend = x1 && -f ~/.configure ]]
@@ -325,6 +343,7 @@ else
run_tilda
start_screensaver
show_help_tip
+ notify_scan &
update_apple_trailers
first_configure