diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-21 23:48:23 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-21 23:48:23 +0000 |
commit | c3794557a9a87c84faa6e18d6e596822be029b06 (patch) | |
tree | 6b0a2e550e8fe0e9731b54ca485fb6d54c731e46 /package/nvram/files | |
parent | 38d48b38aaa7dc5eb3c7a816876f38b7dab0d850 (diff) |
[brcm-2.4] add support for OvisLink WL-1600GL
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19262 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/nvram/files')
-rwxr-xr-x | package/nvram/files/nvram.init | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/nvram/files/nvram.init b/package/nvram/files/nvram.init index 75d712b59..9eae17fd8 100755 --- a/package/nvram/files/nvram.init +++ b/package/nvram/files/nvram.init @@ -74,5 +74,13 @@ start() { nvram set il0macaddr=$(nvram get et0macaddr| awk '{OFS=FS=":";for(x=7,y=2;--x;){$x=sprintf("%02x",(y+="0x"$x)%256);y/=256}print}') } + + [ "$(nvram get et0macaddr)" = "00:90:4c:c0:00:08" ] && { + # OvisLink WL-1600GL mac workaround + nvram set et0macaddr=$(hexdump -n 6 -s 130976 -e '5/1 "%02x:" "%02x" ' /dev/mtd/0) + nvram set il0macaddr=$(nvram get et0macaddr| + awk '{OFS=FS=":";for(x=7,y=2;--x;){$x=sprintf("%02x",(y+="0x"$x)%256);y/=256}print}') + } + [ "$COMMIT" = "1" ] && nvram commit } |