Use device parameter

This commit is contained in:
Bob Mottram 2018-01-17 13:47:36 +00:00
parent 714675ed0e
commit 0ef31c4005
1 changed files with 1 additions and 1 deletions

View File

@ -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