2 # Copyright (C) 2012-2015 OpenWrt.org
7 .
/lib
/upgrade
/common.sh
9 if export_bootdevice
&& export_partdevice partdev
1; then
11 if mount
-t ext4
-o ro
,noatime
"/dev/$partdev" /boot
; then
12 if [ -f /boot
/sysupgrade.tgz
]; then
13 mount
/boot
-o remount
,rw
,noatime
14 mv -f /boot
/sysupgrade.tgz
/
15 mount
/boot
-o remount
,ro
,noatime
17 mount
--bind /boot
/boot
/boot
22 boot_hook_add preinit_mount_root move_config