From 2602ddc0b8fee9062d142332fd80d89005d39fdc Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 31 Mar 2025 13:35:44 +0200 Subject: [PATCH] board/common: skip product init if no product specific dir This silences a bogus warning in the log when runparts is called with no argument. I.e., when there is no product specific init files available. Signed-off-by: Joachim Wiberg --- board/common/rootfs/usr/libexec/infix/init.d/05-product | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/board/common/rootfs/usr/libexec/infix/init.d/05-product b/board/common/rootfs/usr/libexec/infix/init.d/05-product index 6cf9db6d..285ca560 100755 --- a/board/common/rootfs/usr/libexec/infix/init.d/05-product +++ b/board/common/rootfs/usr/libexec/infix/init.d/05-product @@ -39,8 +39,10 @@ fi # init scripts to prevent select services from starting. initctl -nbq cond set led -note "Calling runparts $PRODUCT_INIT/S[0-9]+.* start" -/usr/libexec/finit/runparts -bsp "$PRODUCT_INIT" +if [ -d "$PRODUCT_INIT" ]; then + note "Calling runparts $PRODUCT_INIT/S[0-9]+.* start" + /usr/libexec/finit/runparts -bsp "$PRODUCT_INIT" +fi # Product specific init done. initctl -nbq cond set product