aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-07-11 12:06:37 +0000
committerRoy Marples <roy@marples.name>2007-07-11 12:06:37 +0000
commit356c41f77cb43eb274fea4fce6987ffcc6c03680 (patch)
treea6426bcd7e6527fd73a50bc40834ad8a2e286c44 /sh
parent35d860710a383767012b516d1eef5346dc49e6d9 (diff)
Punt the dodgy ebuffer code. We now force prefixing for parallel starts which also reduces our variable pollution.
Diffstat (limited to 'sh')
-rwxr-xr-xsh/net.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/sh/net.sh b/sh/net.sh
index 21c57e04..16db3bc1 100755
--- a/sh/net.sh
+++ b/sh/net.sh
@@ -67,20 +67,20 @@ _wait_for_carrier() {
# Incase users don't want this nice feature ...
[ ${timeout} -le 0 ] && return 0
- [ -n "${RC_EBUFFER}" -o "${RC_PREFIX}" = "yes" ] && efunc=einfo
+ [ "${RC_PARALLEL}" = "yes" ] && efunc=einfo
${efunc} "Waiting for carrier (${timeout} seconds) "
while [ ${timeout} -gt 0 ] ; do
sleep 1
if _has_carrier ; then
- [ -z "${RC_EBUFFER}" ] && echo
+ [ "${efunc}" = "einfon" ] && echo
eend 0
return 0
fi
timeout=$((${timeout} - 1))
- [ -z "${RC_EBUFFER}" -a "${RC_PREFIX}" != "yes" ] && printf "."
+ [ "${efunc}" = "einfon" ] && printf "."
done
- [ -z "${RC_EBUFFER}" -a "${RC_PREFIX}" != "yes" ] && echo
+ [ "${efunc}" = "einfon" ] && echo
eend 1
return 1
}