Skip to content

Commit 60a34d8

Browse files
committed
fix(network-legacy): silence getargs
1 parent 72cba8a commit 60a34d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: modules.d/35network-legacy/ifup.sh

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

517-
if getargs 'ip=dhcp6' || [ -z "$ip" -a "$netroot" = "dhcp6" ]; then
517+
if getargs 'ip=dhcp6' >/dev/null || [ -z "$ip" -a "$netroot" = "dhcp6" ]; then
518518
load_ipv6
519519
do_dhcp -6
520520
ret=$?
521521
fi
522-
if getargs 'ip=dhcp' || [ -z "$ip" -a "$netroot" != "dhcp6" ]; then
522+
if getargs 'ip=dhcp' >/dev/null || [ -z "$ip" -a "$netroot" != "dhcp6" ]; then
523523
do_dhcp -4
524524
ret=$?
525525
fi

0 commit comments

Comments
 (0)