summaryrefslogtreecommitdiffstats
path: root/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05netconfig
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05netconfig')
-rwxr-xr-xopenwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05netconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05netconfig b/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05netconfig
index 719dab75e..94ee18e56 100755
--- a/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05netconfig
+++ b/openwrt/target/linux/package/base-files/files/brcm-2.4/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