summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2019-11-15 18:00:15 +0000
committerDarren 'Tadgy' Austin <darren@afterdark.org.uk>2019-11-15 18:00:15 +0000
commit04613948a709db1f444aa6aa2b54f06958b227d9 (patch)
treef2584a2e850091073bf9d17593adc0cb77ef19e7
parent99bb15d2b205a8830167cfde4f490c0b561fd347 (diff)
downloadslacknetsetup-04613948a709db1f444aa6aa2b54f06958b227d9.tar.xz
Quiet down the ipv6 modprobe. Tell the user what is going on.
Thanks to upnort for the suggestions.
-rw-r--r--rc.inet14
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.inet1 b/rc.inet1
index 60116d0..dad251e 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -71,7 +71,7 @@ done
# set to 0 before that happens, so try to pre-load ipv6 here.
if [ ! -e /proc/sys/net/ipv6 ]; then
debug_log "/sbin/modprobe ipv6"
- /sbin/modprobe ipv6
+ /sbin/modprobe ipv6 2>/dev/null
_DID_MODPROBE=1
fi
# If we did any module loading in the blocks above, sleep for a couple of
@@ -600,6 +600,7 @@ gateway_down() {
# Function to start the network:
start() {
+ echo "Starting the network interfaces..."
lo_up
virtif_create
for i in "${IFNAME[@]}" ; do
@@ -610,6 +611,7 @@ start() {
# Function to stop the network:
stop() {
+ echo "Stopping the network interfaces..."
gateway_down
for (( i = $MAXNICS - 1; i >= 0; i-- )); do
if_down ${IFNAME[$i]}