diff options
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 # |