2 # Copyright (C) 2015 OpenWrt.org
6 . /lib/upgrade/sockit.sh
8 local board=$(socfpga_board_name)
10 # Restore configuration
11 if [ "${board}" = "socfpga-sockit" ] ; then
12 mount -o rw,noatime "$CFGPART" /mnt
13 [ -e "/mnt/sysupgrade.tgz" ] && mv -f /mnt/sysupgrade.tgz /
18 boot_hook_add preinit_mount_root move_config