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-session22
1 files changed, 17 insertions, 5 deletions
diff --git a/abs/core/LinHES-system/LinHES-session b/abs/core/LinHES-system/LinHES-session
index 8b5bac4..da2f14e 100755
--- a/abs/core/LinHES-system/LinHES-session
+++ b/abs/core/LinHES-system/LinHES-session
@@ -46,15 +46,27 @@ export MALLOC_CHECK_=0
font="-adobe-helvetica-bold-*-*-*-34-*-*-*-*-*-*-*"
}
-function msg_osd(){
- ps -ef | grep -v grep | grep osd_cat
+function delay_osd(){
+ if [ x$STARTUP_STYLE = xmythvantage ]
+ then
+ cmd="ps -ef | grep -v grep | grep xmsg.py"
+ else
+ cmd="ps -ef | grep -v grep | grep osd_cat"
+ fi
+
+ eval $cmd
+
rc=$?
while [ $rc = 0 ]
do
- ps -ef | grep -v grep | grep osd_cat
+ eval $cmd
rc=$?
done
+
+ }
+
+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
}
@@ -173,10 +185,10 @@ function show_help_tip(){
}
function notify_scan(){
- sleep 2
+ delay_osd
if [ -e /tmp/scan_report ]
then
- msg "\n\nNew storage found. \nRun /usr/LH/bin/add_storage.py for details"
+ msg "\nNew storage found. \nRun add_storage.py for details"
fi
}