Changeset 26177


Ignore:
Timestamp:
2011-03-15T10:15:35+01:00 (7 years ago)
Author:
jow
Message:

[backfire] merge r22462, r22561, r25621 and r26175

Location:
branches/backfire/package/comgt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/package/comgt/Makefile

    r26176 r26177  
    11# 
    2 # Copyright (C) 2006-2010 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=comgt 
    1111PKG_VERSION:=0.32 
    12 PKG_RELEASE:=4 
     12PKG_RELEASE:=8 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz 
     
    5050        $(INSTALL_DATA) ./files/evdo.chat $(1)/etc/chatscripts/evdo.chat 
    5151        $(INSTALL_DIR) $(1)/lib/network 
    52         $(INSTALL_DATA) ./files/3g.sh $(1)/lib/network/3g.sh 
     52        $(INSTALL_BIN) ./files/3g.sh $(1)/lib/network/3g.sh 
    5353        $(INSTALL_DIR) $(1)/etc/hotplug.d/button 
    5454        $(INSTALL_DATA) ./files/3g.button $(1)/etc/hotplug.d/button/05-3g 
  • branches/backfire/package/comgt/files/3g.sh

    r22562 r26177  
    11set_3g_led() { 
    22        # set on WRT54G3G only 
    3         [ -d /proc/diag ] || return 0 
    4         grep WRT54G3G /proc/diag/model >/dev/null || return 0 
     3        [ -f /proc/diag/model ] || return 0 
     4        grep -q "WRT54G3G" /proc/diag/model >/dev/null || return 0 
    55        echo "$1" > /proc/diag/led/3g_green 
    66        echo "$2" > /proc/diag/led/3g_blue 
     7        grep -q "WRT54G3G$" /proc/diag/model >/dev/null || return 0 
    78        echo "$3" > /proc/diag/led/3g_blink 
    89} 
  • branches/backfire/package/comgt/files/3g.usb

    r26176 r26177  
    3737 
    3838        local tty 
    39         for tty in /sys/$DEVPATH/ttyUSB*; do 
    40                 [ -d "$tty" ] || break 
     39        for tty in /sys/$DEVPATH/ttyUSB* /sys/$DEVPATH/tty/ttyACM* /sys/$DEVPATH/tty/ttyHS*; do 
     40                [ -d "$tty" ] || continue 
    4141                config_foreach find_3g_iface interface "$tty" 
    4242        done 
Note: See TracChangeset for help on using the changeset viewer.