imx6: use device-tree compatible for board name
[openwrt/openwrt.git] / target / linux / imx6 / base-files / lib / preinit / 79_move_config
index bdf397c4fc076e855d306e13a23759ff40c64bd6..baa7ffe44b031ee418afca9099c5569b7b3f6cd5 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/imx6.sh
 . /lib/functions.sh
 . /lib/upgrade/common.sh
@@ -8,7 +6,9 @@ move_config() {
        local board=$(board_name)
 
        case "$board" in
-       apalis*)
+       toradex,apalis_imx6q-eval |\
+       toradex,apalis_imx6q-ixora |\
+       toradex,apalis_imx6q-ixora-v1.1 )
                if [ -b $(bootpart_from_uuid) ]; then
                        apalis_mount_boot
                        [ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /