From 0ef31c4005f87bd5209de84bd7da013e016ac86b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 17 Jan 2018 13:47:36 +0000 Subject: [PATCH] Use device parameter --- src/freedombone-utils-mesh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-utils-mesh b/src/freedombone-utils-mesh index 5c6da55d..8291b87c 100755 --- a/src/freedombone-utils-mesh +++ b/src/freedombone-utils-mesh @@ -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