From cab97f130fae5ffe3b7ef66995c59dd6a4171563 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 29 Jun 2024 16:04:36 +0200 Subject: [PATCH] init: fix Signed-off-by: AuxXxilium --- files/initrd/opt/arc/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/initrd/opt/arc/init.sh b/files/initrd/opt/arc/init.sh index 94589821..e74cf8f5 100755 --- a/files/initrd/opt/arc/init.sh +++ b/files/initrd/opt/arc/init.sh @@ -87,7 +87,7 @@ ETHX="$(ls /sys/class/net/ 2>/dev/null | grep eth)" if arrayExistItem "sortnetif:" $(readConfigMap "addons" "${USER_CONFIG_FILE}"); then _sort_netif "$(readConfigKey "addons.sortnetif" "${USER_CONFIG_FILE}")" fi -/etc/init.d/S41dhcpcd restart >/dev/null 2>&1 +[ ! -f /var/run/dhcpcd/pid ] && /etc/init.d/S41dhcpcd restart >/dev/null 2>&1 || true # Read/Write IP/Mac config for ETH in ${ETHX}; do MACR="$(cat /sys/class/net/${ETH}/address 2>/dev/null | sed 's/://g' | tr '[:upper:]' '[:lower:]')"