[patchteam] usb-modeswitch-data: update to 20120120 / usb-modeswitch: update to 1...
[packages.git] / utils / usb-modeswitch / files / modeswitch.hotplug
index 8042451..33137d4 100644 (file)
@@ -126,7 +126,7 @@ if [ "$ACTION" = add ]; then
                        local usb_dir="/sys/$DEVPATH"       
                        [ -f "$usb_dir/idVendor" ] || usb_dir="${usb_dir%/*}"
                        while [ $switching_done -lt 1 -a $switching_tries -le 6 ]; do
-                               $modeswitch -I -D -n -s 30 -c "${configs%% *}"
+                               $modeswitch -v $uVid -p $uPid -I -D -n -s 30 -c "${configs%% *}"
                                if [ $(sanitize "$usb_dir/idProduct") = $uPid ]; then
                                        log "switching seemingly failed"
                                else