|
Lines 227-238
detach_filesystem()
Link Here
|
| 227 |
attach_pts_filesystem |
227 |
attach_pts_filesystem |
| 228 |
} |
228 |
} |
| 229 |
|
229 |
|
|
|
230 |
usb_coldplug() |
| 231 |
{ |
| 232 |
# Another round of USB coldplugging to kick devices into operation |
| 233 |
# which lacked drivers before. |
| 234 |
for dev in /sys/bus/usb/devices/*/uevent; do |
| 235 |
[ -e "$dev" ] && echo -n add > "$dev" |
| 236 |
done |
| 237 |
} |
| 238 |
|
| 230 |
start() |
239 |
start() |
| 231 |
{ |
240 |
{ |
| 232 |
# don't use udev if sysfs is not mounted. |
241 |
# don't use udev if sysfs is not mounted. |
| 233 |
[ ! -d $sysfs_dir/block ] && exit 1 |
242 |
[ ! -d $sysfs_dir/block ] && exit 1 |
| 234 |
|
243 |
|
| 235 |
prepare_filesystem |
244 |
prepare_filesystem && usb_coldplug |
| 236 |
RETVAL=$? |
245 |
RETVAL=$? |
| 237 |
return $RETVAL |
246 |
return $RETVAL |
| 238 |
} |
247 |
} |