Skip to content
Snippets Groups Projects
Unverified Commit 92647cd4 authored by Matthias Schiffer's avatar Matthias Schiffer Committed by GitHub
Browse files

gluon-mesh-batman-adv: do not delete bat0 during hardif teardown (#2057)

With very bad timing, it is possible that the teardown script of a
gluon_mesh interface runs when bat0 was just created, but primary0 is not
yet added to it. Although there is no hardif to remove in this case,
bat0 will still be deleted, because there is no hardif in bat0.

Disable the interface removal logic by passing `-M` to `batctl interface`.
parent 6cb5a2ac
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
lock /var/lock/gluon_bat0.lock lock /var/lock/gluon_bat0.lock
batctl interface del "$IFNAME" 2>/dev/null batctl interface -M del "$IFNAME" 2>/dev/null
lock -u /var/lock/gluon_bat0.lock lock -u /var/lock/gluon_bat0.lock
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment