init: revert force restart dhcp

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-07-02 20:12:24 +02:00
parent 9f3928ecfd
commit 306c7f8c41

View File

@ -90,7 +90,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:]')"