7 rootfstype="$(awk 'BEGIN { RS=" "; FS="="; } ($1 == "rootfstype") { print $2 }' < /proc/cmdline)"
10 rootfsdev="$(awk 'BEGIN { RS=" "; FS="="; } ($1 == "block2mtd.block2mtd") { print substr($2,1,index($2, ",")-1) }' < /proc/cmdline)";;
12 rootfsdev="$(awk 'BEGIN { RS=" "; FS="="; } ($1 == "root") { print $2 }' < /proc/cmdline)";;
15 echo "$rootfstype:$rootfsdev"
18 platform_check_image() {
19 [ "$ARGC" -gt 1 ] && return 1
21 case "$(get_magic_word "$1")" in
24 echo "Invalid image type"
30 platform_refresh_partitions() {
34 platform_copy_config() {
35 local rootfs="$(x86_get_rootfs)"
36 local rootfsdev="${rootfs##*:}"
38 mount -t ext4 -o rw,noatime "${rootfsdev%[0-9]}1" /mnt
39 cp -af "$CONF_TAR" /mnt/
43 platform_do_upgrade() {
44 local rootfs="$(x86_get_rootfs)"
45 local rootfsdev="${rootfs##*:}"
48 [ -b ${rootfsdev%[0-9]} ] && get_image "$@" | dd of=${rootfsdev%[0-9]} bs=4096 conv=fsync