1 --- pmount-0.9.4/policy.c.orig 2005-09-22 23:11:29 +0200
2 +++ pmount-0.9.4/policy.c 2005-09-22 23:12:54 +0200
4 device_removable( const char* device )
6 struct sysfs_device *dev;
7 - static char* hotplug_buses[] = { "usb", "ieee1394", NULL };
8 + static char* hotplug_buses[] = { "usb", "ieee1394", "mmc", NULL };
10 char blockdevpath[PATH_MAX];
13 /* check whether device has "removable" attribute with value '1' */
14 removable = get_blockdev_attr( blockdevpath, "removable" );
16 - /* if not, fall back to bus scanning (regard USB and FireWire as removable) */
17 + /* if not, fall back to bus scanning (regard USB, FireWire and MMC as removable) */
19 removable = find_bus_ancestry( dev, hotplug_buses );
20 sysfs_close_device( dev );