OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #!/bin/sh
2 # Copyright (C) 2012-2015 OpenWrt.org
3  
4 move_config() {
5 local partdev
6  
7 . /lib/upgrade/common.sh
8  
9 if export_bootdevice && export_partdevice partdev 1; then
10 mkdir -p /boot
3 office 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
16 fi
17 mount --bind /boot/boot /boot
1 office 18 fi
19 fi
20 }
21  
22 boot_hook_add preinit_mount_root move_config
3 office 23