From 4ea87e2473f7519665ab6c74cc36be9964b7f38f Mon Sep 17 00:00:00 2001 From: Rene Rebe Date: Thu, 11 Dec 2003 18:31:31 +0000 Subject: [PATCH] preserve some more comments in the config files - and seperate the interface sections git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1956 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/iproute2/stone_mod_network.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/base/iproute2/stone_mod_network.sh b/package/base/iproute2/stone_mod_network.sh index 62b243304..0499fde1d 100644 --- a/package/base/iproute2/stone_mod_network.sh +++ b/package/base/iproute2/stone_mod_network.sh @@ -76,6 +76,9 @@ write_section() { prof="$( echo "$para" | sed 's,[(),],_,g' )" [ "$prof" = "$1" ] && passit=0 || passit=1 globals=0 + + # write out a separating newline + echo "" >> $rocknet_base/config.new fi # when we reached the matching section dump the @@ -101,7 +104,7 @@ write_section() { $rocknet_base/config.new fi fi - done < <( sed 's,#.*,,' < "$rocknet_base"/config ) + done < <( cat < "$rocknet_base"/config ) mv $rocknet_base/config{.new,} }