Changeset 22462


Ignore:
Timestamp:
2010-08-02T12:32:39+02:00 (8 years ago)
Author:
markus
Message:

LED handling fixes for WRT54-G3Gv2

Location:
trunk/package/comgt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/comgt/Makefile

    r22061 r22462  
    1010PKG_NAME:=comgt 
    1111PKG_VERSION:=0.32 
    12 PKG_RELEASE:=4 
     12PKG_RELEASE:=5 
    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 
  • trunk/package/comgt/files/3g.sh

    r21285 r22462  
    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} 
Note: See TracChangeset for help on using the changeset viewer.