diff options
-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 |