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 / S05netconfig
index 719dab75e151b05827ff123b891f0b8d4341ae8b..94ee18e5641d347e3c82ec9ff4492167b059a94b 100755 (executable)
@@ -4,7 +4,7 @@
 mkdir -p /etc/config
 
 (
-       if [ "$(/usr/bin/head -c4 /dev/mtdblock/1 | /usr/bin/tail -c3)" = "ELF" ]; then
+       if grep 'mtd0: 00060000' /proc/mtd 2>&- >&-; then
                # WGT634u
                echo boardtype=wgt634u
        else