X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=utils%2Fusb-modeswitch%2Ffiles%2Fmodeswitch.hotplug;h=1aecb1fb3150da9b28cbed8d3057b208a5836e50;hp=eebaf1355e46b646b94eb4440c1c64e10e68efa3;hb=4e041bf75f35d7635124cd2c021695230818739a;hpb=ced39f981aac52f6de9c0fa7beaf678b34da446d diff --git a/utils/usb-modeswitch/files/modeswitch.hotplug b/utils/usb-modeswitch/files/modeswitch.hotplug index eebaf1355e..1aecb1fb31 100644 --- a/utils/usb-modeswitch/files/modeswitch.hotplug +++ b/utils/usb-modeswitch/files/modeswitch.hotplug @@ -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