Use device parameter
This commit is contained in:
parent
714675ed0e
commit
0ef31c4005
|
@ -39,7 +39,7 @@ function mesh_generate_ipv6_address {
|
||||||
search_ipv6=$(ifconfig $1 | grep $network)
|
search_ipv6=$(ifconfig $1 | grep $network)
|
||||||
if [ $search_ipv6 ]; then
|
if [ $search_ipv6 ]; then
|
||||||
result=$(ifconfig $1 | grep $network | awk -F ' ' '{print $2}')
|
result=$(ifconfig $1 | grep $network | awk -F ' ' '{print $2}')
|
||||||
ip -6 addr add ${result}/128 dev wlan0
|
ip -6 addr add ${result}/128 dev $1
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue