diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-07-07 16:54:22 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-07-07 16:54:22 +0000 |
commit | c6f051b554bed2c089ab2d83c6f6726816e704a4 (patch) | |
tree | e44424604a243d26d590d653553997d03554018a | |
parent | 03e4c599a76cb0e80b3fd043bb31ccdee1e7f966 (diff) | |
download | pfsense-c6f051b554bed2c089ab2d83c6f6726816e704a4.zip pfsense-c6f051b554bed2c089ab2d83c6f6726816e704a4.tar.gz |
Rename the vlan interface after assigning the parent interface.
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index e6c3198..c7eab73 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -135,12 +135,12 @@ function interface_vlan_configure($vlan) { //mwexec("/sbin/ifconfig {$vlanif} create"); } $tmpvlanif = exec("/sbin/ifconfig vlan create"); - mwexec("/sbin/ifconfig {$tmpvlanif} name {$vlanif}"); - mwexec("/sbin/ifconfig {$vlanif} vlan " . + mwexec("/sbin/ifconfig {$tmpvlanif} vlan " . escapeshellarg($tag) . " vlandev " . escapeshellarg($if)); + mwexec("/sbin/ifconfig {$tmpvlanif} name {$vlanif}"); interfaces_bring_up($vlanif); /* invalidate interface cache */ |