1 # Copyright (C) 2012-2015 OpenWrt.org
4 local partdev parttype=ext4
6 . /lib/upgrade/common.sh
8 if export_bootdevice && export_partdevice partdev 1; then
10 part_magic_fat "/dev/$partdev" && parttype=vfat
11 mount -t $parttype -o rw,noatime "/dev/$partdev" /boot
12 if [ -f "/boot/$BACKUP_FILE" ]; then
13 mv -f "/boot/$BACKUP_FILE" /
15 mount --bind /boot/boot /boot
19 boot_hook_add preinit_mount_root move_config