imx6: refresh and update target kernel configs
[openwrt/openwrt.git] / target / linux / imx6 / base-files / lib / preinit / 79_move_config
1 . /lib/imx6.sh
2 . /lib/functions.sh
3 . /lib/upgrade/common.sh
4
5 move_config() {
6 local board=$(board_name)
7
8 case "$board" in
9 toradex,apalis_imx6q-eval |\
10 toradex,apalis_imx6q-ixora |\
11 toradex,apalis_imx6q-ixora-v1.1 )
12 if [ -b $(bootpart_from_uuid) ]; then
13 apalis_mount_boot
14 [ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
15 umount /boot
16 fi
17 ;;
18 esac
19 }
20
21 boot_hook_add preinit_mount_root move_config