From 42753d259b3c7b51003cbd161e5ef15fa8a01d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Tue, 17 Mar 2009 00:01:53 +0000 Subject: Actually merge the part that does the real work with FreeBSD groups. --- usr/local/www/interfaces_groups.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'usr/local/www/interfaces_groups.php') diff --git a/usr/local/www/interfaces_groups.php b/usr/local/www/interfaces_groups.php index 09d0b99..3cffab7 100755 --- a/usr/local/www/interfaces_groups.php +++ b/usr/local/www/interfaces_groups.php @@ -43,9 +43,14 @@ $a_ifgroups = &$config['ifgroups']['ifgroupentry']; if ($_GET['act'] == "del") { if ($a_ifgroups[$_GET['id']]) { + $members = explode(" ", $a_ifgroups[$_GET[$id]]); + foreach ($members as $ifs) { + $realif = get_real_interface($ifs); + if ($realif) + mwexec("/sbin/ifconfig {$realif} -group " . $a_ifgroups[$_GET[$id]]['ifname']); + } unset($a_ifgroups[$_GET['id']]); write_config(); - touch($d_ifgroupsdirty_path); header("Location: interfaces_groups.php"); exit; } @@ -93,7 +98,7 @@ include("head.inc"); - + -- cgit v1.1