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