diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-04 08:30:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-04 08:30:02 +0000 |
commit | 25bfaef7abf7b5049d26230c0b4997d148047524 (patch) | |
tree | 839d4c21f8a4e36e1b405e19afc5e0c8912fc2f8 | |
parent | cded7e24578faa2834a8b68fb4e141ecf292ada6 (diff) | |
download | pfsense-packages-25bfaef7abf7b5049d26230c0b4997d148047524.tar.gz pfsense-packages-25bfaef7abf7b5049d26230c0b4997d148047524.tar.bz2 pfsense-packages-25bfaef7abf7b5049d26230c0b4997d148047524.zip |
Conver interface names.
Writeout subnet correctly
-rw-r--r-- | packages/bandwidthd/bandwidthd.inc | 5 |
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 |