aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/base-files/lib/preinit
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2017-01-01 01:06:37 +0800
committerFelix Fietkau <nbd@nbd.name>2017-01-05 11:09:14 +0100
commit6f61d8511eccf2736fd7f430aff2c98c595fa4b9 (patch)
tree04ed2b944470b00af1a94d54702e13e5ed198912 /target/linux/x86/base-files/lib/preinit
parentd53fcdefbf5443e0cc404cead7ba48f9978b81f3 (diff)
downloadupstream-6f61d8511eccf2736fd7f430aff2c98c595fa4b9.tar.gz
upstream-6f61d8511eccf2736fd7f430aff2c98c595fa4b9.tar.bz2
upstream-6f61d8511eccf2736fd7f430aff2c98c595fa4b9.zip
base-files: export x86 platform upgrade functions to common.sh
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'target/linux/x86/base-files/lib/preinit')
-rw-r--r--target/linux/x86/base-files/lib/preinit/79_move_config4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/x86/base-files/lib/preinit/79_move_config b/target/linux/x86/base-files/lib/preinit/79_move_config
index 37954f0236..143ca5147b 100644
--- a/target/linux/x86/base-files/lib/preinit/79_move_config
+++ b/target/linux/x86/base-files/lib/preinit/79_move_config
@@ -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 /