projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bf2efbc
)
DeviceManager : fix hotplug umount.
author
Chang.H.S
<jhs@dev3>
Wed, 12 Dec 2012 05:36:54 +0000
(14:36 +0900)
committer
Chang.H.S
<jhs@dev3>
Wed, 12 Dec 2012 05:36:54 +0000
(14:36 +0900)
lib/python/Plugins/SystemPlugins/DeviceManager/plugin.py
patch
|
blob
|
history
diff --git
a/lib/python/Plugins/SystemPlugins/DeviceManager/plugin.py
b/lib/python/Plugins/SystemPlugins/DeviceManager/plugin.py
index
ec12258
..
66b67aa
100755
(executable)
--- a/
lib/python/Plugins/SystemPlugins/DeviceManager/plugin.py
+++ b/
lib/python/Plugins/SystemPlugins/DeviceManager/plugin.py
@@
-1455,11
+1455,13
@@
class deviceManagerHotplug:
def doUmount(self, device, mountpoint):
devpath = "/dev/"+device
def doUmount(self, device, mountpoint):
devpath = "/dev/"+device
- if len(deviceinfo.checkMountDev(devpath)) == 0:
+ mountpoints = deviceinfo.checkMountDev(devpath)
+ if len(mountpoints) == 0:
return
return
- cmd = "umount %s"%devpath
- print "[DeviceManager] cmd : %s"%cmd
- os.system(cmd)
+ for mp in mountpoints:
+ cmd = "umount %s"%devpath
+ print "[DeviceManager] cmd : %s"%cmd
+ os.system(cmd)
def addHotPlugDevice(self, partition):
device = partition.device
def addHotPlugDevice(self, partition):
device = partition.device