5 rootfstype="$(awk 'BEGIN { RS=" "; FS="="; } ($1 == "rootfstype") { print $2 }' < /proc/cmdline)"
8 rootfsdev="$(awk 'BEGIN { RS=" "; FS="="; } ($1 == "block2mtd.block2mtd") { print substr($2,1,index($2, ",")-1) }' < /proc/cmdline)";;
10 rootfsdev="$(awk 'BEGIN { RS=" "; FS="="; } ($1 == "root") { print $2 }' < /proc/cmdline)";;
13 echo "$rootfstype:$rootfsdev"
16 platform_check_image() {
17 [ "$#" -gt 1 ] && return 1
19 case "$(get_magic_word "$1")" in
22 echo "Invalid image type"
28 platform_copy_config() {
29 local rootfs="$(x86_get_rootfs)"
30 local rootfsdev="${rootfs##*:}"
32 mount -t ext4 -o rw,noatime "${rootfsdev%[0-9]}1" /mnt
33 cp -af "$CONF_TAR" /mnt/
37 platform_do_upgrade() {
38 local rootfs="$(x86_get_rootfs)"
39 local rootfsdev="${rootfs##*:}"
42 [ -b ${rootfsdev%[0-9]} ] && get_image "$@" | dd of=${rootfsdev%[0-9]} bs=4096 conv=fsync