Skip to content

Instantly share code, notes, and snippets.

@cyyself
Created March 26, 2024 15:14
Show Gist options
  • Save cyyself/d6dd0f00bc84affa71cb468d748f478a to your computer and use it in GitHub Desktop.
Save cyyself/d6dd0f00bc84affa71cb468d748f478a to your computer and use it in GitHub Desktop.
Workaround for OpenWrt NDP Proxy
#!/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