Browse Source

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
rocklinux
Rene Rebe 21 years ago
parent
commit
4ea87e2473
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      package/base/iproute2/stone_mod_network.sh

+ 4
- 1
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,}
}

Loading…
Cancel
Save