1 # Copyright (C) 2012-2015 OpenWrt.org
6 . /lib/upgrade/common.sh
8 if export_bootdevice && export_partdevice partdev 3; then
9 if mount -t vfat -o rw,noatime "/dev/$partdev" /mnt; then
10 if [ -f "/mnt/$BACKUP_FILE" ]; then
11 mv -f "/mnt/$BACKUP_FILE" /
18 boot_hook_add preinit_mount_root move_config