summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-03-22 21:36:11 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2012-03-22 21:36:11 +0100
commita5b3a558fda84bc1e10edbd023344cafe24731d0 (patch)
tree8e36bc2f6ad36f4957661242fa3c50cc817dc8bd
parent1046b18b6f5d1efa50d5ae58eb3c99b95c3007bc (diff)
downloadalpine-conf-a5b3a558fda84bc1e10edbd023344cafe24731d0.zip
setup-interfaces: remove newlines from bridge-ports
-rwxr-xr-xsetup-interfaces.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in
index 544a43e..e5e7fc7 100755
--- a/setup-interfaces.in
+++ b/setup-interfaces.in
@@ -122,7 +122,7 @@ config_iface() {
fi
if [ -r "$iface.bridge_ports" ]; then
- bridge_ports=$(sed 's/\n/ /' $iface.bridge_ports)
+ bridge_ports=$(echo $(cat $iface.bridge_ports))
echo "bridge_ports=\"$bridge_ports\"" >> $conf
fi
# use ipcalc to validate the address. we do accept /mask