1 # Copyright (C) 2014 OpenWrt.org
4 . /lib/upgrade/common.sh
7 [ -n "$device" ] && [ -b "$device" ] && {
8 mount -t vfat "$device" /mnt
9 [ -f "/mnt/$BACKUP_FILE" ] && mv -f "/mnt/$BACKUP_FILE" /
14 octeon_move_config() {
17 case "$(board_name)" in
20 move_config "/dev/sda1"
23 move_config "/dev/mmcblk1p1"
27 move_config "/dev/mmcblk0p1"
32 boot_hook_add preinit_mount_root octeon_move_config