+
+ self.partitions = [ ]
+
+ for hddNum in range(8):
+ if existHDD(hddNum):
+ hdd = Harddisk(hddNum)
+ self.hdd.append(hdd)
+
+ # currently, this is just an enumeration of what's possible,
+ # this probably has to be changed to support automount stuff.
+ # still, if stuff is mounted into the correct mountpoints by
+ # external tools, everything is fine (until somebody inserts
+ # a second usb stick.)
+ p = [
+ ("/media/hdd", _("Harddisk")),
+ ("/media/card", _("Card")),
+ ("/media/cf", _("Compact Flash")),
+ ("/media/mmc1", _("MMC Card")),
+ ("/media/net", _("Network Mount")),
+ ("/media/ram", _("Ram Disk")),
+ ("/media/usb", _("USB Stick")),
+ ("/", _("Internal Flash"))
+ ]
+
+ for x in p:
+ self.partitions.append(Partition(mountpoint = x[0], description = x[1]))