2 # Copyright (C) 2014 OpenWrt.org
5 preinit_mount_syscfg() {
10 case $(mvebu_board_name) in
13 ubiattach -p /dev/mtd8
14 mount -t ubifs ubi1:syscfg /tmp/syscfg
15 [ -f /tmp/syscfg/sysupgrade.tgz ] && {
16 echo "- config restore -"
18 mv /tmp/syscfg/sysupgrade.tgz /tmp
19 tar xzf /tmp/sysupgrade.tgz
20 rm -f /tmp/sysupgrade.tgz
27 boot_hook_add preinit_main preinit_mount_syscfg