Revision 5ceb1942
Added by Seth Mos over 14 years ago
etc/inc/services.inc | ||
---|---|---|
701 | 701 |
$dhcpdv6ifs[] = $realif; |
702 | 702 |
/* Create link local address for bridges */ |
703 | 703 |
if(stristr("$realif", "bridge")) { |
704 |
exec("ifconfig {$realif}|awk '/ether/ {print \$NF}'", $mac);
|
|
705 |
$autoaddress = generate_ipv6_from_mac($mac);
|
|
704 |
exec("ifconfig {$realif}|awk '/ether/ {print \$2}'", $mac);
|
|
705 |
$autoaddress = generate_ipv6_from_mac(trim($mac[0]));
|
|
706 | 706 |
mwexec("$ifconfig {$realif} inet6 fe80::{autoaddress}/64"); |
707 | 707 |
} |
708 | 708 |
} |
Also available in: Unified diff
Further fixup the fetch Mac address exec() this hopefully works