mirror of
https://github.com/tomeshnet/prototype-cjdns-pi
synced 2025-10-05 23:52:49 +02:00
Make a local-link ip out of yggdrasil ip
This commit is contained in:
@@ -30,5 +30,13 @@ sudo ifconfig $mesh_dev up
|
||||
# To join radio in HT40+ htmode (enable 802.11n rates) add HT40+ to end of this line
|
||||
sudo iw dev $mesh_dev ibss join MESH_NAME 2412
|
||||
|
||||
# Make a local-link ip out of yggdrasil ip if $mesh_dev does not have a local-link ip
|
||||
if [ ! -z "$(which yggdrasilctl)" ]; then
|
||||
if [ -z "$(ip addr show dev $mesh_dev | grep inet6\ fe)" ]; then
|
||||
ip=$(yggdrasilctl getSelf | grep "IPv6 address" | awk '{print $3}')
|
||||
ip address add dev $mesh_dev scope link fe80::${ip:20}/64
|
||||
fi
|
||||
fi
|
||||
|
||||
# Restart cjdns
|
||||
sudo killall cjdroute
|
||||
|
Reference in New Issue
Block a user