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)
|
||||
if [ $search_ipv6 ]; then
|
||||
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
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue