summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/sbin
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-12-11 21:34:46 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-12-11 21:34:46 +0000
commitdae8543335ed323acc294447be51ba8528c8071f (patch)
treeda2067e5031c99ee9c8e01aad5b44f07cb2f789c /openwrt/package/base-files/default/sbin
parentf59b137053d466103342570bedc7053f090b94a7 (diff)
downloadmtk-20170518-dae8543335ed323acc294447be51ba8528c8071f.zip
mtk-20170518-dae8543335ed323acc294447be51ba8528c8071f.tar.gz
mtk-20170518-dae8543335ed323acc294447be51ba8528c8071f.tar.bz2
unlock linux partition before running jffs2root --clean. fixes #97
SVN-Revision: 2615
Diffstat (limited to 'openwrt/package/base-files/default/sbin')
-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 c393e06..e855b41 100755
--- a/openwrt/package/base-files/default/sbin/mount_root
+++ b/openwrt/package/base-files/default/sbin/mount_root
@@ -22,6 +22,7 @@ if [ "$1" != "failsafe" ]; then
if [ -z "$(nvram get no_root_swap)" ]; then
is_clean || {
mtd erase OpenWrt
+ mtd unlock linux
jffs2root --clean
}
mtd unlock OpenWrt