base-files: improve lib/upgrade/common.sh
[openwrt/openwrt.git] / target / linux / sunxi / base-files / lib / preinit / 79_move_config
index c112588689b15797e24dcbb741022489bf2de627..83171b3ba9dcc7edcf54139f9428b7ca880b3bd2 100644 (file)
@@ -6,7 +6,7 @@ move_config() {
 
        . /lib/upgrade/common.sh
 
-       if export_bootdevice && export_partdevice partdev -1; then
+       if export_bootdevice && export_partdevice partdev 1; then
                if mount -t vfat -o rw,noatime "/dev/$partdev" /mnt; then
                        if [ -f /mnt/sysupgrade.tgz ]; then
                                mv -f /mnt/sysupgrade.tgz /