ipq806x: base-files: asrock: fix bootcount include
authorPetr Štetiar <ynezz@true.cz>
Mon, 28 Feb 2022 13:59:16 +0000 (14:59 +0100)
committerPetr Štetiar <ynezz@true.cz>
Mon, 28 Feb 2022 14:17:11 +0000 (15:17 +0100)
Fixes following warning message during image building process:

 Finalizing root filesystem...
 root-ipq806x/lib/upgrade/asrock.sh: line 1: /lib/functions.sh: No such file or directory
 Enabling boot
 root-ipq806x/lib/upgrade/asrock.sh: line 1: /lib/functions.sh: No such file or directory
 Enabling bootcount

Fixes #9350

Fixes: 98b86296e67d ("ipq806x: add support for ASRock G10")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/ipq806x/base-files/lib/upgrade/asrock.sh

index 9645b646710718c51bc14f586ad99dd359420bb2..b98eab33b2bd8c92f8ac3124d0e286ec5fd56745 100644 (file)
@@ -1,4 +1,4 @@
-. /lib/functions.sh
+. "$IPKG_INSTROOT/lib/functions.sh"
 
 asrock_bootconfig_mangle() {
        local mtdnum="$(find_mtd_index 0:bootconfig)"