[packages] usb-modeswitch: bump to v1.1.4, make hotplug less chatty
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 4 Sep 2010 17:29:44 +0000 (17:29 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 4 Sep 2010 17:29:44 +0000 (17:29 +0000)
SVN-Revision: 22903

utils/usb-modeswitch/Makefile
utils/usb-modeswitch/files/modeswitch.hotplug

index 0aa2021..da2d2a3 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=usb-modeswitch
-PKG_VERSION:=1.1.2
-PKG_RELEASE:=2
+PKG_VERSION:=1.1.4
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://www.draisberghof.de/usb_modeswitch
-PKG_MD5SUM:=071cb300d00938bfe20025c654303d92
+PKG_MD5SUM:=a04db36bd0fc6fb303df7567f677b714
 
 include $(INCLUDE_DIR)/package.mk
 
index eebaf13..1aecb1f 100644 (file)
@@ -92,7 +92,7 @@ if [ "$ACTION" = add ]; then
        [ -d "/etc/usb_modeswitch.d" ] && [ -x "$modeswitch" ] && {
                case "$DEVICENAME" in
                        *-*:*.*) : ;;
-                       *) log "Not handling $DEVICENAME"; exit 0 ;;
+                       *) exit 0 ;;
                esac
 
                find_usb_attrs
@@ -121,8 +121,6 @@ if [ "$ACTION" = add ]; then
                [ -n "$configs" ] && {
                        log "$DEVICENAME: Selecting ${configs%% *} for mode switching"
                        $modeswitch -c "${configs%% *}"
-               } || {
-                       log "$DEVICENAME: Device does not seem to need mode switching"
                }
        }
 fi