From 25bfaef7abf7b5049d26230c0b4997d148047524 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 4 Feb 2007 08:30:02 +0000 Subject: Conver interface names. Writeout subnet correctly --- packages/bandwidthd/bandwidthd.inc | 5 +++-- 1 file 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 = <<