Changeset 32602


Ignore:
Timestamp:
2012-07-04T14:02:23+02:00 (6 years ago)
Author:
jow
Message:

[packages] usb-modeswitch: wait a second before retrying modeswitching, this reportedly helps to kick some dongles into operation

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

Legend:

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

    r30411 r32602  
    11# 
    2 # Copyright (C) 2008-2011 OpenWrt.org 
     2# Copyright (C) 2008-2012 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=usb-modeswitch 
    1111PKG_VERSION:=1.2.3 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
  • packages/utils/usb-modeswitch/files/modeswitch.hotplug

    r30411 r32602  
    124124                        switching_done=0 
    125125                        switching_tries=0 
    126                         local usb_dir="/sys/$DEVPATH"        
     126                        local usb_dir="/sys/$DEVPATH" 
    127127                        [ -f "$usb_dir/idVendor" ] || usb_dir="${usb_dir%/*}" 
    128128                        while [ $switching_done -lt 1 -a $switching_tries -le 6 ]; do 
    129129                                $modeswitch -v $uVid -p $uPid -I -D -n -s 30 -c "${configs%% *}" 
    130130                                if [ $(sanitize "$usb_dir/idProduct") = $uPid ]; then 
    131                                         log "switching seemingly failed" 
     131                                        log "$DEVICENAME: Switching seemingly failed" 
     132                                        sleep 1 
    132133                                else 
    133134                                        switching_done=1 
Note: See TracChangeset for help on using the changeset viewer.