diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-22 14:53:41 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-22 14:53:41 (GMT) |
commit | ee9f3a54c5fe17cf481051d9c951a242200ead02 (patch) | |
tree | c455bdca501adcb04dc7609de1d6529cce4c2c57 /abs/core/LinHES-system/lh_message.sh | |
parent | 7e990c0f0b1bc3ba66efb23789cd46744feba37f (diff) | |
download | linhes_pkgbuild-ee9f3a54c5fe17cf481051d9c951a242200ead02.zip linhes_pkgbuild-ee9f3a54c5fe17cf481051d9c951a242200ead02.tar.gz linhes_pkgbuild-ee9f3a54c5fe17cf481051d9c951a242200ead02.tar.bz2 |
LinHES-system: cleanup of the osd system.
rename xmsg.py to msg_osd.py
change diskspace.sh to use msg_client.py
Diffstat (limited to 'abs/core/LinHES-system/lh_message.sh')
-rw-r--r-- | abs/core/LinHES-system/lh_message.sh | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/abs/core/LinHES-system/lh_message.sh b/abs/core/LinHES-system/lh_message.sh index deddcff..f186bf3 100644 --- a/abs/core/LinHES-system/lh_message.sh +++ b/abs/core/LinHES-system/lh_message.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This script is called by msd_daemon.py and used to display messages on the osd_cat +# May be called directly but best used through msg_daemon + + MYTH_RUN_STATUS="1" . /etc/profile . /etc/systemconfig @@ -19,33 +23,12 @@ fi font="-adobe-helvetica-bold-*-*-*-34-*-*-*-*-*-*-*" } - -# function delay_osd(){ -# if [ x$STARTUP_STYLE = xmythvantage ] -# then -# cmd="ps -ef | grep -v grep | grep -q xmsg.py" -# else -# cmd="ps -ef | grep -v grep | grep -q osd_cat" -# fi -# -# eval $cmd -# -# rc=$? -# while [ $rc = 0 ] -# do -# eval $cmd -# rc=$? -# done -# -# -# } - function msg_osd(){ DISPLAY=127.0.0.1:0 echo -e "$1" | DISPLAY=127.0.0.1:0 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(){ - DISPLAY=127.0.0.1:0 /usr/LH/bin/xmsg.py -m "$1" + DISPLAY=127.0.0.1:0 /usr/LH/bin/msg_osd.py -m "$1" } function msg(){ |