Last active
January 26, 2025 14:22
-
-
Save cyyself/b06d912d7b71d52a50b6d228c2451777 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Check if multiple IPv6 addresses are assigned to the usb0 interface | |
# If so, we have deprecated addresses and need to restart the interface. | |
if [ $(cat /proc/net/if_inet6 | grep usb0 | wc -l) -gt 2 ]; then | |
ifdown wwan6 | |
ifup wwan6 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment