Przeglądaj źródła

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
Florian Fainelli 14 lat temu
rodzic
commit
d40a79ccfd
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 2 2
      package/comgt/Makefile
  2. 2 2
      package/comgt/files/3g.usb

+ 2 - 2
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

+ 2 - 2
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