summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rc.inet17
1 files changed, 6 insertions, 1 deletions
diff --git a/rc.inet1 b/rc.inet1
index 9eb5655..9a6fd61 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -59,6 +59,7 @@ for i in "${IFNAME[@]}"; do
if /sbin/modprobe -c | grep -v "^#" | grep -w "alias ${i%%:*}" | grep -vw "alias ${i%%:*} off" >/dev/null; then
echo "/etc/rc.d/rc.inet1: /sbin/modprobe ${i%%:*}" | $LOGGER
/sbin/modprobe ${i%%:*}
+ _DID_MODPROBE=1
fi
fi
done
@@ -67,8 +68,12 @@ done
# set to 0 before that happens, so try to pre-load ipv6 here.
if [ ! -e /proc/sys/net/ipv6 ]; then
/sbin/modprobe ipv6
+ _DID_MODPROBE=1
fi
-sleep 1
+# If we did any module loading in the blocks above, sleep for a couple of
+# seconds to give time for everything to "take"
+[ -n "${_DID_MODPROBE}" ] && sleep 2
+unset _DID_MODPROBE
######################
# LOOPBACK FUNCTIONS #