Changeset 28872


Ignore:
Timestamp:
2011-11-09T03:59:10+01:00 (6 years ago)
Author:
jow
Message:

usb-modeswitch: Fix a condition to compare default product id and switched product id on startup.

These default product id and switched product id are hex string variables, so this comparison operator should be '='.

Signed-off-by: Kentaro Matsuyama <kentaro.matsuyama@…>

Location:
packages/utils/usb-modeswitch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/usb-modeswitch/Makefile

    r28559 r28872  
    1010PKG_NAME:=usb-modeswitch 
    1111PKG_VERSION:=1.2.0 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
  • packages/utils/usb-modeswitch/files/modeswitch.hotplug

    r28555 r28872  
    128128                        while [ $switching_done -lt 1 -a $switching_tries -le 6 ]; do 
    129129                                $modeswitch -I -D -n -s 30 -c "${configs%% *}" 
    130                                 if [ $(sanitize "$usb_dir/idProduct") -eq $uPid ]; then 
     130                                if [ $(sanitize "$usb_dir/idProduct") = $uPid ]; then 
    131131                                        log "switching seemingly failed" 
    132132                                else 
Note: See TracChangeset for help on using the changeset viewer.