aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/package/base-files/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-01-31 22:36:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-01-31 22:36:07 +0000
commit545d26b542978dee03a534a05b98bb0c49487d1a (patch)
tree0aec010a7e41b8007b7fcf685e5ade64d1e77a30 /target/linux/package/base-files/files
parent66ac85a58c48d67f62cd4471eb03172e08b0d71d (diff)
downloadmaster-187ad058-545d26b542978dee03a534a05b98bb0c49487d1a.tar.gz
master-187ad058-545d26b542978dee03a534a05b98bb0c49487d1a.tar.bz2
master-187ad058-545d26b542978dee03a534a05b98bb0c49487d1a.zip
finally fix the /etc/config/network bug on wgt634u (#214, #215, #219)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3105 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/package/base-files/files')
-rwxr-xr-xtarget/linux/package/base-files/files/brcm-2.4/etc/init.d/S05netconfig2
-rwxr-xr-xtarget/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram2
-rwxr-xr-xtarget/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig2
3 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05netconfig b/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05netconfig
index 719dab75e1..94ee18e564 100755
--- a/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05netconfig
+++ b/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/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram b/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram
index dbae25620b..b985948d78 100755
--- a/target/linux/package/base-files/files/brcm-2.4/etc/init.d/S05nvram
+++ b/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/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig b/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig
index 719dab75e1..94ee18e564 100755
--- a/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig
+++ b/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