Skip to content

Instantly share code, notes, and snippets.

@cyyself
Last active January 26, 2025 14:22
Show Gist options
  • Save cyyself/b06d912d7b71d52a50b6d228c2451777 to your computer and use it in GitHub Desktop.
Save cyyself/b06d912d7b71d52a50b6d228c2451777 to your computer and use it in GitHub Desktop.
#!/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