projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
contrib/meshwizard: Fix getting of mac address when the interface is not up yet,...
[project/luci.git]
/
contrib
/
package
/
meshwizard
/
files
/
usr
/
bin
/
meshwizard
/
helpers
/
setup_network.sh
diff --git
a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_network.sh
b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_network.sh
index fc3ca9d1b38c11122a0be7f02f27455485707cbc..c3647c42dc443b1a120fc5f4809b66b70649dc07 100755
(executable)
--- a/
contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_network.sh
+++ b/
contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_network.sh
@@
-27,11
+27,7
@@
EOF
local ip6addr
if [ "$profile_ipv6" = 1 ]; then
if [ "$profile_ipv6_config" = "auto-ipv6-dhcpv6" ]; then
local ip6addr
if [ "$profile_ipv6" = 1 ]; then
if [ "$profile_ipv6_config" = "auto-ipv6-dhcpv6" ]; then
- # get interface mac
- local device="$(uci -p/var/state -q get network.$netrenamed.ifname)"
- if [ -n "device" ]; then
- ip6addr="$($dir/helpers/gen_auto-ipv6-dhcpv6-ip.sh $device)"
- fi
+ ip6addr="$($dir/helpers/gen_auto-ipv6-dhcpv6-ip.sh $netrenamed)"
uci set network.$netrenamed.ip6addr="${ip6addr}/112"
fi
fi
uci set network.$netrenamed.ip6addr="${ip6addr}/112"
fi
fi