aboutsummaryrefslogtreecommitdiff
path: root/net/ifplugd.sh
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-04-19 17:17:53 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2011-04-19 17:49:20 +0000
commit2d197357ef9b92c6a237b438723c2969b51a802d (patch)
tree746808c36f80b315f04b8616d1aedb75630663a5 /net/ifplugd.sh
parentb6409feaac9922e5761ed7beef93bdf0fdf2faf7 (diff)
[oldnet] Bug #363959: Improve plug_timeout ifplugd/netplugd code.
- Add support for a global plug_timeout setting to match the documentation. - Update the documentation to also show per-interface configuration. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'net/ifplugd.sh')
-rw-r--r--net/ifplugd.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ifplugd.sh b/net/ifplugd.sh
index 9f6c8846..34cd18a5 100644
--- a/net/ifplugd.sh
+++ b/net/ifplugd.sh
@@ -51,7 +51,9 @@ ifplugd_pre_start()
eindent
+ # IFACE-specific, then global, then default
eval timeout=\$plug_timeout_${IFVAR}
+ [ -z "${timeout}" ] && timeout=$plug_timeout
[ -z "${timeout}" ] && timeout=-1
if [ ${timeout} -eq 0 ]; then
ewarn "WARNING: infinite timeout set for ${IFACE} to come up"