projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[packages] usb-modeswitch: bump to v1.1.4, make hotplug less chatty
[openwrt/svn-archive/archive.git]
/
utils
/
usb-modeswitch
/
files
/
modeswitch.hotplug
diff --git
a/utils/usb-modeswitch/files/modeswitch.hotplug
b/utils/usb-modeswitch/files/modeswitch.hotplug
index eebaf1355e46b646b94eb4440c1c64e10e68efa3..1aecb1fb3150da9b28cbed8d3057b208a5836e50 100644
(file)
--- 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
*-*:*.*) : ;;
[ -d "/etc/usb_modeswitch.d" ] && [ -x "$modeswitch" ] && {
case "$DEVICENAME" in
*-*:*.*) : ;;
- *)
log "Not handling $DEVICENAME";
exit 0 ;;
+ *) exit 0 ;;
esac
find_usb_attrs
esac
find_usb_attrs
@@
-121,8
+121,6
@@
if [ "$ACTION" = add ]; then
[ -n "$configs" ] && {
log "$DEVICENAME: Selecting ${configs%% *} for mode switching"
$modeswitch -c "${configs%% *}"
[ -n "$configs" ] && {
log "$DEVICENAME: Selecting ${configs%% *} for mode switching"
$modeswitch -c "${configs%% *}"
- } || {
- log "$DEVICENAME: Device does not seem to need mode switching"
}
}
fi
}
}
fi