From b15ae348f3c2cc0718e4dbd4a2a9153775ca7216 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Sun, 22 Nov 2009 23:14:45 +0100 Subject: [PATCH] Deleting a IP alias needs the IP as a argument, just issuing delete is not valid syntax --- etc/inc/interfaces.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index ef79f01a4a..83ba5fcd61 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -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); } -?> \ No newline at end of file +?>