fix(network-legacy): silence getargs

master
Harald Hoyer 2021-03-08 15:40:00 +01:00 committed by Harald Hoyer
parent 72cba8aecd
commit 60a34d8b11
1 changed files with 2 additions and 2 deletions

View File

@ -514,12 +514,12 @@ if [ -z "$NO_AUTO_DHCP" ] && [ ! -e /tmp/net.${netif}.up ]; then
# No ip lines, no bootdev -> default to dhcp
ip=$(getarg ip)

if getargs 'ip=dhcp6' || [ -z "$ip" -a "$netroot" = "dhcp6" ]; then
if getargs 'ip=dhcp6' >/dev/null || [ -z "$ip" -a "$netroot" = "dhcp6" ]; then
load_ipv6
do_dhcp -6
ret=$?
fi
if getargs 'ip=dhcp' || [ -z "$ip" -a "$netroot" != "dhcp6" ]; then
if getargs 'ip=dhcp' >/dev/null || [ -z "$ip" -a "$netroot" != "dhcp6" ]; then
do_dhcp -4
ret=$?
fi