Commit 5e60c91a authored by Anton Midyukov's avatar Anton Midyukov

net-eth, mipsel-*: Add new target use/net-eth/dhcp/timeout/$TIMEOUT

Thanks for the idea Ivan A. Melnikov.
parent 06b67bd7
use/mipsel-bfk3: use/kernel use/tty/S0
use/mipsel-bfk3: use/kernel use/tty/S0 use/net-eth/dhcp/timeout/20
@$(call add_feature)
@$(call set,KFLAVOURS,bfk3-def)
@$(call set,VM_FSTYPE,ext2)
......
use/mipsel-mitx: use/kernel use/tty/S0
use/mipsel-mitx: use/kernel use/tty/S0 use/net-eth/dhcp/timeout/20
@$(call add_feature)
@$(call set,KFLAVOURS,mitx-xpa)
@$(call add,THE_PACKAGES,alt-config-be-t)
......
......@@ -16,6 +16,11 @@ use/net-eth/networkd: use/net/networkd
# typical boilerplate
use/net-eth/dhcp: use/net-eth use/net/dhcp
@$(call add,NET_ETH,eth0:dhcp)
@$(call try,NET_ETH_TIMEOUT,7)
@$(call xport,NET_ETH_TIMEOUT)
use/net-eth/dhcp/timeout/%: use/net-eth/dhcp
@$(call set,NET_ETH_TIMEOUT,$*)
use/net-eth/networkd-dhcp: use/net-eth/networkd
@$(call add,NET_ETH,eth0:dhcp)
......
......@@ -42,11 +42,7 @@ write_etcnet_iface() {
append=
case "$proto" in
dhcp)
if [ $GLOBAL_ARCH = mipsel ]; then
append="DHCP_TIMEOUT=20"
else
append="DHCP_TIMEOUT=7"
fi
append="DHCP_TIMEOUT=$GLOBAL_NET_ETH_TIMEOUT"
;;
static)
echo "$ipv4addr" > "$dir/ipv4address"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment