Commit 16e6bee7 authored by Ad Schellevis's avatar Ad Schellevis

move get_pppoes_child_interfaces into services.inc

parent 1ea8dddb
......@@ -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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment