/lib/functions.sh: remove jffs2_ready()
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40402
This commit is contained in:
parent
0f2524f473
commit
1d763171bf
1 changed files with 0 additions and 7 deletions
|
@ -533,13 +533,6 @@ boot_run_hook() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
jffs2_ready() {
|
|
||||||
mtdpart="$(find_mtd_part rootfs_data)"
|
|
||||||
[ -z "$mtdpart" ] && return 1
|
|
||||||
magic=$(hexdump $mtdpart -n 4 -e '4/1 "%02x"')
|
|
||||||
[ "$magic" != "deadc0de" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
pivot() { # <new_root> <old_root>
|
pivot() { # <new_root> <old_root>
|
||||||
/bin/mount -o noatime,move /proc $1/proc && \
|
/bin/mount -o noatime,move /proc $1/proc && \
|
||||||
pivot_root $1 $1$2 && {
|
pivot_root $1 $1$2 && {
|
||||||
|
|
Loading…
Reference in a new issue