We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72cba8a commit 60a34d8Copy full SHA for 60a34d8
modules.d/35network-legacy/ifup.sh
@@ -514,12 +514,12 @@ if [ -z "$NO_AUTO_DHCP" ] && [ ! -e /tmp/net.${netif}.up ]; then
514
# No ip lines, no bootdev -> default to dhcp
515
ip=$(getarg ip)
516
517
- if getargs 'ip=dhcp6' || [ -z "$ip" -a "$netroot" = "dhcp6" ]; then
+ if getargs 'ip=dhcp6' >/dev/null || [ -z "$ip" -a "$netroot" = "dhcp6" ]; then
518
load_ipv6
519
do_dhcp -6
520
ret=$?
521
fi
522
- if getargs 'ip=dhcp' || [ -z "$ip" -a "$netroot" != "dhcp6" ]; then
+ if getargs 'ip=dhcp' >/dev/null || [ -z "$ip" -a "$netroot" != "dhcp6" ]; then
523
do_dhcp -4
524
525
0 commit comments