From 468bfe55557d637080082f3c59b3f302acc85a9f Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Fri, 10 Mar 2017 00:41:49 -0600 Subject: 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 --- rc.inet1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.inet1') 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 -- cgit v1.2.3