base-files: export x86 platform upgrade functions to common.sh
[openwrt/staging/florian.git] / target / linux / x86 / base-files / lib / preinit / 79_move_config
index 37954f0236faafca657a05a3c1efc7df2e162bfc..143ca5147b5693a5b8068dc10eb71b5066777160 100644 (file)
@@ -4,9 +4,9 @@
 move_config() {
        local partdev
 
-       . /lib/upgrade/platform.sh
+       . /lib/upgrade/common.sh
 
-       if platform_export_bootdevice && platform_export_partdevice partdev 1; then
+       if export_bootdevice && export_partdevice partdev 1; then
                if mount -t ext4 -o rw,noatime "/dev/$partdev" /mnt; then
                        if [ -f /mnt/sysupgrade.tgz ]; then
                                mv -f /mnt/sysupgrade.tgz /