1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
svn-openwrt-archive/target/linux/socfpga/base-files/lib/preinit/79_move_config
Luka Perkov 432743c327 target: socfpga: Add Altera SoCFPGA support
This patch adds support for the Altera SoCFPGA target.
Both generic target and Terasic SoCkit boards are supported.

Signed-off-by: Marek Vasut <marex@denx.de>

SVN-Revision: 49367
2016-05-10 22:52:00 +00:00

19 lines
378 B
Bash

#!/bin/sh
# Copyright (C) 2015 OpenWrt.org
move_config() {
. /lib/socfpga.sh
. /lib/upgrade/sockit.sh
local board=$(socfpga_board_name)
# Restore configuration
if [ "${board}" = "socfpga-sockit" ] ; then
mount -o rw,noatime "$CFGPART" /mnt
[ -e "/mnt/sysupgrade.tgz" ] && mv -f /mnt/sysupgrade.tgz /
umount /mnt
fi
}
boot_hook_add preinit_mount_root move_config