diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-06-18 15:25:28 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-06-18 15:25:28 (GMT) |
commit | 10d8e10a21b819b5fb53b276fbfd3361dda4ae1d (patch) | |
tree | baff46ec105c840ae26ebb3525f67f6326cff863 /abs/core/LinHES-system/myth_status.py | |
parent | bef1f269596c44d6f7cdfbfc1bfa220061866a29 (diff) | |
download | linhes_pkgbuild-10d8e10a21b819b5fb53b276fbfd3361dda4ae1d.zip linhes_pkgbuild-10d8e10a21b819b5fb53b276fbfd3361dda4ae1d.tar.gz linhes_pkgbuild-10d8e10a21b819b5fb53b276fbfd3361dda4ae1d.tar.bz2 |
LinHES-system: myth_status.py: add welcome message
Diffstat (limited to 'abs/core/LinHES-system/myth_status.py')
-rw-r--r-- | abs/core/LinHES-system/myth_status.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/abs/core/LinHES-system/myth_status.py b/abs/core/LinHES-system/myth_status.py index fbf8fdc..cd541ca 100644 --- a/abs/core/LinHES-system/myth_status.py +++ b/abs/core/LinHES-system/myth_status.py @@ -3,7 +3,7 @@ #Also will display alerts generated by xymon. If the location of xymon changes, this script needs to be updated. from MythTV import MythBE,MythDB,MythLog -import datetime,pytz,re,subprocess,sys,time +import datetime,pytz,re,socket,subprocess,sys,time from dateutil.parser import parse from tzlocal import get_localzone @@ -255,6 +255,8 @@ class tuner_recording_status: def go(): + welcomeFile=open("/etc/LinHES-release", "r") + print "Welcome to %s on %s\n" %(welcomeFile.readline().rstrip(), socket.gethostname()) tuner = tuner_recording_status(12) if tuner.get_db_check_status() == 0: tuner.print_tuner_status() |