summaryrefslogtreecommitdiff
path: root/openwrt/target/default
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-04-03 20:34:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-04-03 20:34:22 +0000
commit2333ec43a8a5380c9b026aa4d81a358a56a517ff (patch)
tree70fdc50698638d94ecfa23e0dbad01ddbed02e88 /openwrt/target/default
parent2828d86cc6bfae2aa92d82ace23dfa0b47e953ab (diff)
downloadmtk-20170518-2333ec43a8a5380c9b026aa4d81a358a56a517ff.zip
mtk-20170518-2333ec43a8a5380c9b026aa4d81a358a56a517ff.tar.gz
mtk-20170518-2333ec43a8a5380c9b026aa4d81a358a56a517ff.tar.bz2
unlock linux partition in mount_root
SVN-Revision: 547
Diffstat (limited to 'openwrt/target/default')
-rwxr-xr-xopenwrt/target/default/target_skeleton/sbin/mount_root1
1 files changed, 1 insertions, 0 deletions
diff --git a/openwrt/target/default/target_skeleton/sbin/mount_root b/openwrt/target/default/target_skeleton/sbin/mount_root
index db73eae..b15d6b9 100755
--- a/openwrt/target/default/target_skeleton/sbin/mount_root
+++ b/openwrt/target/default/target_skeleton/sbin/mount_root
@@ -2,6 +2,7 @@
if [ "$1" != "failsafe" ]; then
mount | grep jffs2 >&-
if [ $? = 0 ] ; then
+ mtd unlock linux
mtd unlock rootfs
[ $(cat /proc/mtd | wc -l) = 6 ] && {
echo 5 > /proc/sys/diag