Removes the errexit shell option from generate_network_config.sh #276
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The script runs a loop waiting for /sys/class/netc/ethN directories to exist. With errexit enabled, the script would terminate when those directories did not exist, which is counterproductive in this case. I'm sure there is some other way to get around this while still leaving the errexit option enabled, but this seemed pretty simple. Indeed, this script never had any shell options set until I added them just a week or two ago while doing other work.
This PR also modifies the configure_tc_fq.sh script to operate on the /sys/class/net/ethN/carrier file instead of "operstate", which is generate_network_config.sh already does, and was just an oversight on my part to not change it earlier, too.
Also, add
set -ux
to generate_network_config.sh, just to make debugging easier in the future if we have any issues with the script.This change is