diff -Nur -x '*.orig' -x '*.rej' smolt-0.9.8.1/client/smolt.py mezzanine_patched_smolt-0.9.8.1/client/smolt.py --- smolt-0.9.8.1/client/smolt.py 2007-07-01 15:58:05.000000000 -0600 +++ mezzanine_patched_smolt-0.9.8.1/client/smolt.py 2007-07-01 15:56:55.000000000 -0600 @@ -182,7 +182,12 @@ try: self.language = os.environ['LANG'] except KeyError: - self.language = 'Unknown' + try: + status, lang = commands.getstatusoutput("grep LANG /etc/sysconfig/i18n") + if status == 0: + self.language = lang.split('"')[1] + except: + self.language = 'Unknown' try: self.platform = hostInfo['system.kernel.machine'] except KeyError: @@ -285,7 +290,7 @@ props = dev.GetAllProperties() self.devices[udi] = Device(props) if udi == '/org/freedesktop/Hal/devices/computer': - status, systemType = commands.getstatusoutput("config gettype SystemMode") + status, systemType = commands.getstatusoutput("/sbin/e-smith/config gettype SystemMode") if status == 0: props['system.formfactor'] = systemType try: @@ -311,7 +316,7 @@ except KeyError: product = None if vendor is None or product is None: - dmiOutput = os.popen("dmidecode", "r") + dmiOutput = os.popen("/usr/sbin/dmidecode", "r") section = None sysvendor = None sysproduct = None