octeon: sysupgrade: support config restore on ERL
[openwrt/openwrt.git] / target / linux / octeon / base-files / lib / preinit / 79_move_config
1 #!/bin/sh
2 # Copyright (C) 2014 OpenWrt.org
3
4 move_config() {
5 . /lib/functions/octeon.sh
6
7 local board="$(octeon_board_name)"
8
9 case "$board" in
10 erlite)
11 mount -t vfat /dev/sda1 /mnt
12 mv -f /mnt/sysupgrade.tgz /
13 umount /mnt
14 ;;
15 esac
16 }
17
18 boot_hook_add preinit_mount_root move_config