mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
move get_pppoes_child_interfaces into services.inc
This commit is contained in:
parent
1ea8dddbc4
commit
16e6bee75a
@ -59,6 +59,21 @@ function generate_ipv6_from_mac($mac) {
|
||||
return $ipv6;
|
||||
}
|
||||
|
||||
function get_pppoes_child_interfaces($ifpattern) {
|
||||
$if_arr = array();
|
||||
if($ifpattern == "")
|
||||
return;
|
||||
|
||||
exec("ifconfig", $out, $ret);
|
||||
foreach($out as $line) {
|
||||
if(preg_match("/^({$ifpattern}[0-9]+):/i", $line, $match)) {
|
||||
$if_arr[] = $match[1];
|
||||
}
|
||||
}
|
||||
return $if_arr;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* implement ipv6 route advertising deamon */
|
||||
function services_radvd_configure($blacklist = array())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user