2 # Copyright (C) 2012 OpenWrt.org
8 rootfstype="$(awk 'BEGIN { RS=" "; FS="="; } ($1 == "rootfstype") { print $2 }' < /proc/cmdline)"
11 rootfsdev="$(awk 'BEGIN { RS=" "; FS="="; } ($1 == "block2mtd.block2mtd") { print substr($2,1,index($2, ",")-1) }' < /proc/cmdline)";;
13 rootfsdev="$(awk 'BEGIN { RS=" "; FS="="; } ($1 == "root") { print $2 }' < /proc/cmdline)";;
16 mount -t ext4 -o rw,noatime "${rootfsdev%[0-9]}1" /mnt
17 mv -f /mnt/sysupgrade.tgz /
21 boot_hook_add preinit_mount_root move_config