Updated upstream Git repositories
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-3.2git20120327 / small_hdd_bugfix.patch
1 diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py
2 index beb9b7c..478f18e 100644
3 --- a/usr/lib/enigma2/python/Components/Harddisk.py
4 +++ b/usr/lib/enigma2/python/Components/Harddisk.py
5 @@ -1220,7 +1220,7 @@ class HarddiskManager:
6                                                 if cur_default_dev is None or (path.exists(cur_default_newmp) and self.isMount(cur_default_newmp)):
7                                                         if new_default_cfg["enabled"].value and path.exists(new_default_cfg["mountpoint"].value) and self.isMount(new_default_cfg["mountpoint"].value):
8                                                                 self.unmountPartitionbyMountpoint(new_default_cfg["mountpoint"].value, new_default_dev )
9 -                                                       if not new_default_cfg["enabled"].value or (path.exists(new_default_cfg["mountpoint"].value) and not self.isMount(new_default_cfg["mountpoint"].value)):
10 +                                                       if not new_default_cfg["enabled"].value or not self.isMount(new_default_cfg["mountpoint"].value):
11                                                                 new_default_cfg["mountpoint"].value = def_mp
12                                                                 new_default_cfg["enabled"].value = True
13                                                                 self.storageDeviceChanged(uuid)
14 diff --git a/lib/python/Plugins/SystemPlugins/Hotplug/plugin.py b/lib/python/Plugins/SystemPlugins/Hotplug/plugin.py
15 index 078950f..497d5df 100644
16 --- a/usr/lib/enigma2/python/Plugins/SystemPlugins/Hotplug/plugin.py
17 +++ b/usr/lib/enigma2/python/Plugins/SystemPlugins/Hotplug/plugin.py
18 @@ -83,7 +83,7 @@ def autostart(reason, **kwargs):
19                                         except socket.error, err:
20                                                 print "hotplug: receive from netlink socket failed.", os.strerror(err.errno)
21                                         else:
22 -                                               print "HOTPLUG(%d):" %(what), received
23 +#                                              print "HOTPLUG(%d):" %(what), received
24                                                 data = received[0].split('\0')[:-1]
25                                                 v = {}
26