imx6: Add support for Toradex Apalis family of CoMs
[openwrt/openwrt.git] / target / linux / imx6 / base-files / lib / preinit / 79_move_config
1 #!/bin/sh
2
3 . /lib/imx6.sh
4 . /lib/functions.sh
5
6 move_config() {
7 local board=$(board_name)
8
9 case "$board" in
10 apalis*)
11 if [ -b $(bootpart_from_uuid) ]; then
12 apalis_mount_boot
13 [ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
14 umount /boot
15 fi
16 ;;
17 esac
18 }
19
20 boot_hook_add preinit_mount_root move_config