mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 01:39:52 +07:00
tree: fix missing
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
caa6007555
commit
15eea1e4e6
@ -1353,7 +1353,7 @@ function staticIPMenu() {
|
||||
IPR="$(readConfigKey "network.${MACR}" "${USER_CONFIG_FILE}")"
|
||||
IFS='/' read -r -a IPRA <<<"$IPR"
|
||||
|
||||
MSG="Set to ${ETH}(${MACR}): (Delete if empty)"
|
||||
MSG="$(printf "Set to %s: (Delete if empty)" "${ETH}(${MACR})")"
|
||||
while true; do
|
||||
dialog --backtitle "$(backtitle)" --title "StaticIP" \
|
||||
--form "${MSG}" 10 60 4 "address" 1 1 "${IPRA[0]}" 1 9 36 16 "netmask" 2 1 "${IPRA[1]}" 2 9 36 16 "gateway" 3 1 "${IPRA[2]}" 3 9 36 16 "dns" 4 1 "${IPRA[3]}" 4 9 36 16 \
|
||||
@ -1380,6 +1380,7 @@ function staticIPMenu() {
|
||||
echo "nameserver ${dnsname:-${gateway}}" >>/etc/resolv.conf
|
||||
fi
|
||||
writeConfigKey "network.${MACR}" "${address}/${netmask}/${gateway}/${dnsname}" "${USER_CONFIG_FILE}"
|
||||
IP="$(getIP)"
|
||||
sleep 1
|
||||
fi
|
||||
writeConfigKey "arc.builddone" "false" "${USER_CONFIG_FILE}"
|
||||
|
@ -83,6 +83,7 @@ initConfigKey "zimage-hash" "" "${USER_CONFIG_FILE}"
|
||||
ETHX=$(ls /sys/class/net/ 2>/dev/null | grep eth) # real network cards list
|
||||
if arrayExistItem "sortnetif:" $(readConfigMap "addons" "${USER_CONFIG_FILE}"); then
|
||||
_sort_netif "$(readConfigKey "addons.sortnetif" "${USER_CONFIG_FILE}")"
|
||||
/etc/init.d/S41dhcpcd restart
|
||||
fi
|
||||
# Read/Write IP/Mac config
|
||||
for ETH in ${ETHX}; do
|
||||
|
Loading…
Reference in New Issue
Block a user