diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-01-31 22:36:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-01-31 22:36:07 +0000 |
commit | f7ba30f01a2e2c500c8818feabb1b33e9442d077 (patch) | |
tree | 42d19b8c87da00f04dc4bf12465c504218958f3c /openwrt/target/linux | |
parent | 6d9260d2673be75133be6b900f1d7588fed9efd4 (diff) | |
download | mtk-20170518-f7ba30f01a2e2c500c8818feabb1b33e9442d077.zip mtk-20170518-f7ba30f01a2e2c500c8818feabb1b33e9442d077.tar.gz mtk-20170518-f7ba30f01a2e2c500c8818feabb1b33e9442d077.tar.bz2 |
finally fix the /etc/config/network bug on wgt634u (#214, #215, #219)
SVN-Revision: 3105
Diffstat (limited to 'openwrt/target/linux')
3 files changed, 3 insertions, 3 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 719dab7..94ee18e 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 diff --git a/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram b/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram index dbae256..b985948 100755 --- a/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram +++ b/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram @@ -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 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 719dab7..94ee18e 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 |