projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ar71xx] fix dir-825-b1 default network config after r21905
[openwrt.git]
/
package
/
base-files
/
files
/
lib
/
functions
/
boot.sh
diff --git
a/package/base-files/files/lib/functions/boot.sh
b/package/base-files/files/lib/functions/boot.sh
index
96c1c59
..
f93eec9
100644
(file)
--- a/
package/base-files/files/lib/functions/boot.sh
+++ b/
package/base-files/files/lib/functions/boot.sh
@@
-32,6
+32,7
@@
find_mtd_part() {
jffs2_ready () {
mtdpart="$(find_mtd_part rootfs_data)"
jffs2_ready () {
mtdpart="$(find_mtd_part rootfs_data)"
+ [ -z "$mtdpart" ] && return 1
magic=$(hexdump $mtdpart -n 4 -e '4/1 "%02x"')
[ "$magic" != "deadc0de" ]
}
magic=$(hexdump $mtdpart -n 4 -e '4/1 "%02x"')
[ "$magic" != "deadc0de" ]
}
@@
-42,7
+43,7
@@
dupe() { # <new_root> <old_root>
{
cd $2
find . -xdev -type d
{
cd $2
find . -xdev -type d
- echo "./dev ./
jffs
./mnt ./proc ./tmp"
+ echo "./dev ./
overlay
./mnt ./proc ./tmp"
# xdev skips mounted directories
cd $1
} | xargs mkdir -p
# xdev skips mounted directories
cd $1
} | xargs mkdir -p
@@
-69,7
+70,6
@@
pivot() { # <new_root> <old_root>
mount -o move $2/dev /dev
mount -o move $2/tmp /tmp
mount -o move $2/sys /sys 2>&-
mount -o move $2/dev /dev
mount -o move $2/tmp /tmp
mount -o move $2/sys /sys 2>&-
- mount -o move $2/jffs /jffs 2>&-
mount -o move $2/overlay /overlay 2>&-
return 0
}
mount -o move $2/overlay /overlay 2>&-
return 0
}
This page took
0.026198 seconds
and
4
git commands to generate.