get to know sourcemage too
This commit is contained in:
parent
275187b8b6
commit
21f279a659
|
@ -51,6 +51,7 @@ distro_info = {
|
||||||
'Slackware Linux': '/etc/slackware-release',
|
'Slackware Linux': '/etc/slackware-release',
|
||||||
'Slackware Linux': '/etc/slackware-version',
|
'Slackware Linux': '/etc/slackware-version',
|
||||||
'Solaris/Sparc': '/etc/release',
|
'Solaris/Sparc': '/etc/release',
|
||||||
|
'Source Mage': '/etc/sourcemage_version',
|
||||||
'SUSE Linux': '/etc/SuSE-release',
|
'SUSE Linux': '/etc/SuSE-release',
|
||||||
'Sun JDS': '/etc/sun-release',
|
'Sun JDS': '/etc/sun-release',
|
||||||
'PLD Linux': '/etc/pld-release',
|
'PLD Linux': '/etc/pld-release',
|
||||||
|
@ -96,6 +97,8 @@ def get_os_info():
|
||||||
text = fd.read().strip()
|
text = fd.read().strip()
|
||||||
fd.close()
|
fd.close()
|
||||||
if path_to_file.endswith('version'):
|
if path_to_file.endswith('version'):
|
||||||
|
# sourcemage_version has all the info we need
|
||||||
|
if not path_to_file.startswith('sourcemage'):
|
||||||
text = distro_name + ' ' + text
|
text = distro_name + ' ' + text
|
||||||
elif path_to_file.endswith('aurox-release'): # file doesn't have version
|
elif path_to_file.endswith('aurox-release'): # file doesn't have version
|
||||||
text = distro_name
|
text = distro_name
|
||||||
|
|
Loading…
Reference in New Issue