diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-04-26 23:24:35 +0200 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-04-26 23:24:35 +0200 |
| commit | 6860bccf8a14d5cea270b6bb0823e2f9cf90f060 (patch) | |
| tree | 9632e0f79aa35b473ec849f0479ce1bbd7b19255 /lib/python | |
| parent | b94a5364df3ca40511efe11e2723128ff333fc96 (diff) | |
| download | enigma2-6860bccf8a14d5cea270b6bb0823e2f9cf90f060.tar.gz enigma2-6860bccf8a14d5cea270b6bb0823e2f9cf90f060.zip | |
Patch by pieterg: try both device names for mounting via fstab
Diffstat (limited to 'lib/python')
| -rwxr-xr-x | lib/python/Components/Harddisk.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index ad6c1a3b..df14276b 100755 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -161,9 +161,15 @@ class Harddisk: return (res >> 8) def mount(self): - cmd = "/bin/mount -t ext3 " + self.devidex + "part1" - res = system(cmd) - return (res >> 8) + res = -1 + #we don't know which type of devicename is used in fstab, try both + for device in [self.devidex, self.devidex2]: + cmd = "/bin/mount -t ext3 " + device + "part1" + res = system(cmd) + res >>= 8 + if not res: + break + return res def createMovieFolder(self): try: |
