imx: add Gateworks Venice support
[openwrt/openwrt.git] / target / linux / imx / cortexa53 / base-files / lib / preinit / 79_move_config
1 . /lib/functions.sh
2 . /lib/upgrade/common.sh
3
4 move_config() {
5 local board=$(board_name)
6 local partdev
7
8 export_bootdevice && export_partdevice partdev 1 && {
9 mount -o rw,noatime "/dev/$partdev" /mnt
10 [ -f "/mnt/$BACKUP_FILE" ] && {
11 mv -f "/mnt/$BACKUP_FILE" /
12 }
13 umount /mnt
14 }
15 }
16
17 boot_hook_add preinit_mount_root move_config