diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-11-22 23:14:45 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-11-22 23:14:45 +0100 |
commit | b15ae348f3c2cc0718e4dbd4a2a9153775ca7216 (patch) | |
tree | 9dedbf39188cf41b0fcfb136aaa72ac7afc7b47a /etc | |
parent | 9006e9f8b5b161f8b5ad00d26d3b58004743af12 (diff) | |
download | pfsense-b15ae348f3c2cc0718e4dbd4a2a9153775ca7216.zip pfsense-b15ae348f3c2cc0718e4dbd4a2a9153775ca7216.tar.gz |
Deleting a IP alias needs the IP as a argument, just issuing delete is not valid syntax
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index ef79f01..83ba5fc 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 +?> |