Created
March 26, 2024 15:14
-
-
Save cyyself/d6dd0f00bc84affa71cb468d748f478a to your computer and use it in GitHub Desktop.
Workaround for OpenWrt NDP Proxy
This file contains 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
#!/bin/sh | |
master_if='usb0' | |
slave_if='br-lan' | |
master_inet6_global=$(ip addr show dev $master_if scope global | awk '{if ($1=="inet6") {print $2}}') | |
if [ $master_inet6_global ]; then | |
ip addr add $master_inet6_global dev $slave_if | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment