X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/b7ee265303843ebf083ca60069a34a091bbaaeae..3fb64e239b9275ee1b7c14de5fe9e293baa32f83:/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig 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 72d5b63ac..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 @@ -31,7 +31,7 @@ BEGIN { END { # v1 hardware - if (nvram["boardtype"] == "bcm4710dev") { + if (nvram["boardtype"] == "bcm94710dev") { # Linksys WRT54G v1.x if (nvram["boardnum"] == "42") { c["vlan0ports"]=""