base-files: Reapply fixed "Ignore exit code of uci.sh inclusion"
authorPaul Spooren <mail@aparcar.org>
Mon, 10 Jun 2024 14:59:41 +0000 (16:59 +0200)
committerPaul Spooren <mail@aparcar.org>
Wed, 12 Jun 2024 09:12:13 +0000 (11:12 +0200)
This reverts commit 80d1c353b79e6c216dcb2534420470e3e6ed5d60 with the
fix which won't break running systems. A logic error on how shell
handles && and || more the init process.

Signed-off-by: Paul Spooren <mail@aparcar.org>
package/base-files/files/lib/functions.sh

index a009aa81e99d0bcdced53a51c0267b0f3873b140..e944d36505662fd0faf1d7c312c7e10ece6c75e1 100644 (file)
@@ -533,4 +533,4 @@ cmdline_get_var() {
        done
 }
 
-[ -z "$IPKG_INSTROOT" ] && [ -f /lib/config/uci.sh ] && . /lib/config/uci.sh
+[ -z "$IPKG_INSTROOT" ] && [ -f /lib/config/uci.sh ] && . /lib/config/uci.sh || true