Changeset 16379 for branches/8.09


Ignore:
Timestamp:
2009-06-08T14:00:59+02:00 (7 years ago)
Author:
jow
Message:

Merge r16378 to 8.09

Location:
branches/8.09/package/nvram-brcm47xx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/8.09/package/nvram-brcm47xx/Makefile

    r15486 r16379  
    99 
    1010PKG_NAME:=nvram-brcm47xx 
    11 PKG_RELEASE:=4 
     11PKG_RELEASE:=5 
    1212 
    1313PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 
  • branches/8.09/package/nvram-brcm47xx/src/nvram.c

    r15437 r16379  
    412412        char *path = NULL; 
    413413        struct stat s; 
    414  
    415         if( (fp = fopen("/proc/mtd", "r")) ) 
     414        int supported = 1; 
     415 
     416        /* Refuse any operation on the WGT634U */ 
     417        if( (fp = fopen("/proc/diag/model", "r")) ) 
     418        { 
     419                if( fgets(dev, sizeof(dev), fp) && !strncmp(dev, "Netgear WGT634U", 15) ) 
     420                        supported = 0; 
     421 
     422                fclose(fp); 
     423        } 
     424 
     425        if( supported && (fp = fopen("/proc/mtd", "r")) ) 
    416426        { 
    417427                while( fgets(dev, sizeof(dev), fp) ) 
Note: See TracChangeset for help on using the changeset viewer.