aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitc959f175d9f0506cede945980ab37fcd8e4f054c (patch)
tree0a55da53bb00731ef4b33ba4709ec2dcbbe0225e /package/base-files/default/sbin
parent7a10b426f1f4fcbbc71902563ffbeee4b69e7bc3 (diff)
downloadupstream-c959f175d9f0506cede945980ab37fcd8e4f054c.tar.gz
upstream-c959f175d9f0506cede945980ab37fcd8e4f054c.tar.bz2
upstream-c959f175d9f0506cede945980ab37fcd8e4f054c.zip
unlock linux partition before running jffs2root --clean. fixes #97
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2615 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/default/sbin')
-rwxr-xr-xpackage/base-files/default/sbin/mount_root1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/default/sbin/mount_root b/package/base-files/default/sbin/mount_root
index c393e06f39..e855b41a1e 100755
--- a/package/base-files/default/sbin/mount_root
+++ b/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