x86: use PARTUUID instead explicitly specifying the device by default
[openwrt/staging/wigyori.git] / target / linux / x86 / base-files / lib / preinit / 79_move_config
1 #!/bin/sh
2 # Copyright (C) 2012-2015 OpenWrt.org
3
4 move_config() {
5 . /lib/upgrade/platform.sh
6
7 if platform_export_bootpart; then
8 mount -t ext4 -o rw,noatime "$BOOTPART" /mnt
9 mv -f /mnt/sysupgrade.tgz /
10 umount /mnt
11 fi
12 }
13
14 boot_hook_add preinit_mount_root move_config
15