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,} }