From 3fb64e239b9275ee1b7c14de5fe9e293baa32f83 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 31 Jan 2006 22:36:07 +0000 Subject: finally fix the /etc/config/network bug on wgt634u (#214, #215, #219) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3105 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openwrt/target/linux/package/base-files/files/brcm-2.6/etc') diff --git a/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig b/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig index 719dab75e..94ee18e56 100755 --- a/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig +++ b/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig @@ -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 -- cgit v1.2.3