Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Change grep method
Browse files Browse the repository at this point in the history
Turns out the UDMP would sometimes shift to having some eth interfaces retain 9216 which would bypass the function. Now this only checks the br interfaces as they appear to inherit the MTU from the interfaces that they are members of.
  • Loading branch information
kalenarndt committed May 3, 2021
1 parent 1070d9a commit b5249ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 11-change-mtu.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
function check_mtu {
ip link list | grep -i eth10 | grep -i 'mtu 9216' > /dev/null;
ip link list | grep -i switch | grep -i 'mtu 9216' > /dev/null;
ip link list | grep -E 'br.:|br..:' | grep 'mtu 9216' > /dev/null;
}
while true; do
if check_mtu; then
Expand Down

0 comments on commit b5249ad

Please sign in to comment.