dist/tools/*/start_network.sh: ensure TUN/TAP interface#13801
dist/tools/*/start_network.sh: ensure TUN/TAP interface#13801benpicco merged 1 commit intoRIOT-OS:masterfrom
Conversation
Previously, when the creation of the TUN/TAP interface failed in one of the `start_network.sh` scripts, the script will fail with a cryptic error like > dist/tools/ethos/start_network.sh: 68: [: -eq: unexpected operator This fix ensures, that the value of this variable checked is always set such that in the error case, `ethos`/`sliptty` won't start.
|
I don't see how that would help - |
Then, this does not fix your problem? Shall we close? |
I don't understand @benpicco's argument to be honest. The error comes because if |
Ah! I overlooked the In that case, the patch is the proper thing to do. |
|
But shouldn't it be |
|
Contribution description
Previously, when the creation of the TUN/TAP interface failed in one of the
start_network.shscripts, the script will fail with a cryptic error likeThis fix ensures, that the value of this variable checked is always set such that in the error case,
ethos/slipttywon't start.Testing procedure
Ask @benpicco. I was not able to reproduce it.
Issues/PRs references
See #13734 (comment)