diff options
Diffstat (limited to 'lib/python')
| -rwxr-xr-x | lib/python/Components/Harddisk.py | 6 | ||||
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index 637c8898..2efdb68f 100755 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -6,11 +6,7 @@ import time from Components.Console import Console def readFile(filename): - try: - file = open(filename) - except IOError: - return "" - + file = open(filename) data = file.read().strip() file.close() return data diff --git a/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py b/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py index 6d404cf2..6292a46f 100644 --- a/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py +++ b/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py @@ -494,7 +494,7 @@ class NFIDownload(Screen): self.taskstring = "" self.container.appClosed.append(self.fdisk_finished) self.container.execute("fdisk " + self.stickdevice + "/disc") - self.container.write("d\nn\np\n1\n\n\nt\n6\nw\n") + self.container.write("d\n4\nd\n3\nd\n2\nd\nn\np\n1\n\n\nt\n6\nw\n") self.delayTimer = eTimer() self.delayTimer.callback.append(self.progress_increment) self.delayTimer.start(105, False) |
