summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-11-07 01:30:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-11-07 01:30:03 +0000
commita0650ead6b346cd245c04bee8025c62281f62375 (patch)
tree9f437e698e94e0c723bce622a053e0eef0e9ca3a /openwrt/package/base-files/default
parent2e8e51060ffcc46bb1308d7eae4d2bc3456deacf (diff)
downloadmtk-20170518-a0650ead6b346cd245c04bee8025c62281f62375.zip
mtk-20170518-a0650ead6b346cd245c04bee8025c62281f62375.tar.gz
mtk-20170518-a0650ead6b346cd245c04bee8025c62281f62375.tar.bz2
disable squashfs auto-clean for non-broadcom stuff
SVN-Revision: 2365
Diffstat (limited to 'openwrt/package/base-files/default')
-rwxr-xr-xopenwrt/package/base-files/default/sbin/mount_root1
1 files changed, 1 insertions, 0 deletions
diff --git a/openwrt/package/base-files/default/sbin/mount_root b/openwrt/package/base-files/default/sbin/mount_root
index c8edaaa..c393e06 100755
--- a/openwrt/package/base-files/default/sbin/mount_root
+++ b/openwrt/package/base-files/default/sbin/mount_root
@@ -1,6 +1,7 @@
#!/bin/sh
. /etc/nvram.sh
is_clean() {
+ grep Broadcom /proc/cpuinfo 2>&- >&- || return 0
OFFSET="$((0x$(dd if=/dev/mtdblock/1 bs=1 skip=$((0x14)) count=2 2>&- | hexdump | grep 0000000 | cut -d ' ' -f 2) - 1))"
dd if=/dev/mtdblock/1 bs=1 skip=$OFFSET count=1 2>&- | hexdump -v | grep ' 0000' > /dev/null && return 255 || return 0
}