Spawn one fewer shells on startup. We don't use dhcp_interfaces at

all in this function, and grep shows no other instances of it
(besides, this is a function, and in a sub-shell, so all changes are
local).
This commit is contained in:
Warner Losh 2009-01-30 03:41:45 +00:00
parent b29362d8dd
commit 5dc2a65eed

View File

@ -21,7 +21,6 @@ defaultroute_start()
# Return without waiting if we don't have dhcp interfaces.
# Once we can test that the link is actually up, we should
# remove this test and always wait.
dhcp_interfaces=`list_net_interfaces dhcp`
[ -z "`list_net_interfaces dhcp`" ] && return
# Wait for a default route