Commit 18266b0d authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

fix static IP fallback for DHCP_ONCE config option

parent 47d0404c
......@@ -98,6 +98,9 @@ fi
if [ "$CONFIG_ETH0_DHCP_ONCE" = "y" ]; then
echo "Try DHCP to get IP" | tee $log_output
# Configure shell to report pipe failure it af least one of the processes
# fails.
set -o pipefail
# try dhcp, if fail use static IP
udhcpc -i $management_port -n $DHCP_OPT_EXTRA | tee $log_output
if [ $? -ne 0 ]; then
......
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