Skip to content
Snippets Groups Projects
Commit 3489fabd authored by nbd's avatar nbd
Browse files

/lib/functions.sh: remove jffs2_ready()


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40402 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 108e6e48
No related branches found
No related tags found
No related merge requests found
......@@ -533,13 +533,6 @@ boot_run_hook() {
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>
/bin/mount -o noatime,move /proc $1/proc && \
pivot_root $1 $1$2 && {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment