Skip to content

Instantly share code, notes, and snippets.

@voronenko-p
Created January 29, 2019 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voronenko-p/fac4f7af367c90dbfc543258825f488d to your computer and use it in GitHub Desktop.
Save voronenko-p/fac4f7af367c90dbfc543258825f488d to your computer and use it in GitHub Desktop.
#!/bin/sh
if ip link show tap0 | grep "master br0" ; then
echo "Unbinding interface from bridge"
ip link set tap0 nomaster || true
else
echo "Tap0 is not part of the bridge"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment