summaryrefslogtreecommitdiffstats
path: root/openwrt/package
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-12-11 21:34:46 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-12-11 21:34:46 +0000
commitd429de78cafac72146839e55d30cd76273934858 (patch)
tree849fc82ccce38510576049ac065c694e9826a4ac /openwrt/package
parent8d1840301d1daa24bcfce378f90794eb80d33b39 (diff)
unlock linux partition before running jffs2root --clean. fixes #97
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2615 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package')
-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 c393e06f3..e855b41a1 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