just show hdd info when there is one
[enigma2.git] / lib / python / Screens / About.py
index 542bee6a02199eff30b7a2c7181adb0ee1a2f532..5359b26b49c0e762a6c37220165c96eb27fefd07 100644 (file)
@@ -21,8 +21,10 @@ class About(Screen):
 
                self["hdd"] = Label("Detected HDD:")
                hdd = Harddisk(0)
-               self["hddA"] = Label("%s (%s, %d MB free)" % (hdd.model(), hdd.capacity(),hdd.free()))
-               #self["hddA"] = Label("Seagate 398 GByte (323 GByte free)")
+               if hdd.model() != "":
+                       self["hddA"] = Label("%s (%s, %d MB free)" % (hdd.model(), hdd.capacity(),hdd.free()))
+               else:                   
+                       self["hddA"] = Label("none")
 
                self["actions"] = ActionMap(["SetupActions"], 
                        {