Deleting a IP alias needs the IP as a argument, just issuing delete is not valid syntax

This commit is contained in:
Seth Mos 2009-11-22 23:14:45 +01:00
parent 9006e9f8b5
commit b15ae348f3

View File

@ -840,13 +840,11 @@ function interface_bring_down($interface = "wan", $destroy = false) {
sleep(1);
unlink_if_exists("{$g['varetc_path']}/dhclient_{$interface}.conf");
if(does_interface_exist("$realif")) {
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete");
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " down");
}
break;
default:
if(does_interface_exist("$realif")) {
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete");
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " down");
}
break;
@ -2806,4 +2804,4 @@ function setup_pppoe_reset_file($interface, $status) {
unlink_if_exists(CRON_PPPOE_CMD_FILE);
}
?>
?>