finally fix the /etc/config/network bug on wgt634u (#214, #215, #219)
[openwrt/svn-archive/archive.git] / openwrt / target / linux / package / base-files / files / brcm-2.4 / etc / init.d / S05nvram
index dbae25620b79c61dbde9ca96f84b4f32252f1134..b985948d78f1ba1372ca505fe3a900766b18f52a 100755 (executable)
@@ -7,7 +7,7 @@
 alias debug=${DEBUG:-:}
 
 # WGT634u
-[ "$(/usr/bin/head -c4 /dev/mtdblock/1 | /usr/bin/tail -c3)" = "ELF" ] && exit
+grep 'mtd0: 00060000' /proc/mtd 2>&- >&- && exit
 
 remap () {
        for type in lan wifi wan pppoe