1 # Copyright (C) 2015 OpenWrt.org
3 . /lib/upgrade/common.sh
8 export_bootdevice && export_partdevice partdev 1 || {
12 if [ -b "/dev/$partdev" ]; then
18 mount -t vfat -o rw,noatime /dev/$partdev /boot
19 [ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
23 boot_hook_add preinit_mount_root move_config