diff options
author | Florian Fainelli <florian@openwrt.org> | 2011-02-20 17:24:25 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2011-02-20 17:24:25 +0000 |
commit | d40a79ccfd766f71877af394169d2d6ac848942e (patch) | |
tree | 7a843d878f302a66eec4b3968bb495aa4a1497bf | |
parent | 43d7aff94e8909d63e4d4206606f9f7ce03f0942 (diff) | |
download | upstream-d40a79ccfd766f71877af394169d2d6ac848942e.tar.gz upstream-d40a79ccfd766f71877af394169d2d6ac848942e.tar.bz2 upstream-d40a79ccfd766f71877af394169d2d6ac848942e.zip |
comgt: add ACM hotplug
This adds in support for ttyACM devices in the 3g hotplug script.
Signed-off-by: Matthew Eaton <wrt at divinehawk.com>
SVN-Revision: 25621
-rw-r--r-- | package/comgt/Makefile | 4 | ||||
-rw-r--r-- | package/comgt/files/3g.usb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/package/comgt/Makefile b/package/comgt/Makefile index 5e36ad71c2..c3cf8ed1b5 100644 --- a/package/comgt/Makefile +++ b/package/comgt/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=comgt PKG_VERSION:=0.32 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz PKG_SOURCE_URL:=@SF/comgt diff --git a/package/comgt/files/3g.usb b/package/comgt/files/3g.usb index c52646b3dd..ecaa96f85b 100644 --- a/package/comgt/files/3g.usb +++ b/package/comgt/files/3g.usb @@ -36,8 +36,8 @@ if [ "$ACTION" = add ]; then esac local tty - for tty in /sys/$DEVPATH/ttyUSB*; do - [ -d "$tty" ] || break + for tty in /sys/$DEVPATH/ttyUSB* /sys/$DEVPATH/tty/ttyACM*;; do + [ -d "$tty" ] || continue config_foreach find_3g_iface interface "$tty" done fi |