summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2017-03-10 00:41:49 -0600
committerRobby Workman <rworkman@slackware.com>2017-07-11 16:58:52 -0500
commit468bfe55557d637080082f3c59b3f302acc85a9f (patch)
tree5db5c0e32fc00e5f1166185ba8cbeb0f8584e4ac
parent2b563b7a34b1d00d7162983ff13c12867cc62c2e (diff)
downloadslacknetsetup-468bfe55557d637080082f3c59b3f302acc85a9f.tar.xz
rc.inet1: Use return (not continue) to leave the if_up() function.
Thanks to Tim Thomas for the bug report. Merged from Wed Sep 21 15:54:06 UTC 2016 changes to -current tree
-rw-r--r--rc.inet12
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.inet1 b/rc.inet1
index 19b89d5..4bd959b 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -113,7 +113,7 @@ if_up() {
if [ "$DEBUG_ETH_UP" = "yes" ]; then
echo "/etc/rc.d/rc.inet1: skipping ${1} early, interface is not configured in /etc/rc.d/rc.inet1.conf" | $LOGGER
fi
- continue
+ return 0
fi
if ! grep `echo ${1}: | cut -f 1 -d :`: /proc/net/dev 1> /dev/null ; then # no interface yet
if /sbin/modprobe -c | grep -v "^#" | grep -w "alias ${1}" | grep -vw "alias ${1} off" > /dev/null ; then