Skip to content

Commit

Permalink
fix(network-legacy): silence getargs
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldh committed Mar 10, 2021
1 parent 72cba8a commit 60a34d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules.d/35network-legacy/ifup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60a34d8

Please sign in to comment.