mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 02:09:52 +07:00
init: add dhcp restart (only for testing)
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
5377eb0e72
commit
ecf9bc8f74
@ -82,6 +82,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
|
||||
# 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:]')"
|
||||
|
Loading…
Reference in New Issue
Block a user