aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-04 08:30:02 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-04 08:30:02 +0000
commit25bfaef7abf7b5049d26230c0b4997d148047524 (patch)
tree839d4c21f8a4e36e1b405e19afc5e0c8912fc2f8 /packages
parentcded7e24578faa2834a8b68fb4e141ecf292ada6 (diff)
downloadpfsense-packages-25bfaef7abf7b5049d26230c0b4997d148047524.tar.gz
pfsense-packages-25bfaef7abf7b5049d26230c0b4997d148047524.tar.bz2
pfsense-packages-25bfaef7abf7b5049d26230c0b4997d148047524.zip
Conver interface names.
Writeout subnet correctly
Diffstat (limited to 'packages')
-rw-r--r--packages/bandwidthd/bandwidthd.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/bandwidthd/bandwidthd.inc b/packages/bandwidthd/bandwidthd.inc
index 947a24a8..8e469cdb 100644
--- a/packages/bandwidthd/bandwidthd.inc
+++ b/packages/bandwidthd/bandwidthd.inc
@@ -76,14 +76,15 @@ function bandwidthd_install_config() {
if($subnet)
$subnets .= "subnet \"{$subnet}\"";
} else {
- $subnets .= "subnet \"{$subnet}/{$ifcfg['subnet']}\\n";
+ $subnets .= "subnet \"{$subnet}/{$ifcfg['subnet']}\"\n";
}
}
$dev = "";
/* XXX: $dev "eth0" */
foreach($ifdescrs as $ifdescr) {
- $dev .= "dev \"$ifdescr\"\n";
+ $descr = convert_friendly_interface_to_real_interface_n($ifdescr);
+ $dev .= "dev \"$descr\"\n";
}
$config_file = <<<EOF