aboutsummaryrefslogtreecommitdiff
path: root/sh/init.sh.Linux.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-12-18 00:20:23 -0500
committerMike Frysinger <vapier@gentoo.org>2012-12-18 00:24:02 -0500
commit7557d62870a3ee92ff43e97bab734e2deaf3cb8a (patch)
tree18853cee585c10752daa416c3b7438b03a3f6a92 /sh/init.sh.Linux.in
parent2c60282ba9d12040e82e6571c9df8aa1e3da36a2 (diff)
net.lo: sleep *after* carrier check
For devices that are always connected (e.g. ethernet cards), the current carrier always wastes time by sleeping for 1 second. This is because the code sleeps first, then checks for carrier. Invert the order so that we return quickly for devices already active. For devices which are not yet up, there shouldn't be any real difference. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sh/init.sh.Linux.in')
0 files changed, 0 insertions, 0 deletions