diff options
author | Robby Workman <rworkman@slackware.com> | 2017-03-10 00:41:49 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2017-07-11 16:58:52 -0500 |
commit | 468bfe55557d637080082f3c59b3f302acc85a9f (patch) | |
tree | 5db5c0e32fc00e5f1166185ba8cbeb0f8584e4ac /rc.inet1 | |
parent | 2b563b7a34b1d00d7162983ff13c12867cc62c2e (diff) | |
download | slacknetsetup-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
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |