OpenWrt – Blame information for rev 1

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 if mount -t vfat -o rw,noatime "/dev/$partdev" /mnt; then
11 if [ -f /mnt/sysupgrade.tgz ]; then
12 mv -f /mnt/sysupgrade.tgz /
13 fi
14 umount /mnt
15 fi
16 fi
17 }
18  
19 boot_hook_add preinit_mount_root move_config
20