[Mirror] The Firmware for FFBSee Community
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60-freifunk-ula 460B

1234567891011121314151617
  1. #!/bin/sh
  2. # Make sure that the ULA address is based on the
  3. # MAC address of the primary batman-adv interface.
  4. # This makes the node reachable by the MAC address
  5. # used by batman-adv and therefore the map.
  6. if [ "$INTERFACE" = "bat0" ]; then
  7. . /lib/ff_shared.sh
  8. macaddr="$(batctl neighbors | awk -F'[/ ]' '{print $7; exit;}')"
  9. prefix="$(uci get network.globals.ula_prefix)"
  10. ipaddr="$(ula_addr $prefix $macaddr)"
  11. ip a a "$ipaddr/64" dev br-freifunk
  12. fi