Browse Source

nice sorting and indenting of the tag chooser

git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1976 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
866f76576c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      package/base/sysfiles/stone_mod_network.sh

+ 3
- 3
package/base/sysfiles/stone_mod_network.sh

@ -127,11 +127,11 @@ add_tag() {
cmd="gui_menu add_tag 'Add tag of type'"
while read tag module ; do
cmd="$cmd '$tag ($module)' 'tta=$tag'"
cmd="$cmd '`printf "%-12s %s" "$tag" "($module)"`' 'tta=$tag'"
done < <( cd /etc/network/modules/ ; grep public_ * | sed -e \
's/\([a-zA-Z0-9_-]*\).sh:public_\([a-zA-Z0-9_-]*\).*/\2 \1/' \
| sort)
eval $cmd
| sort +2 +1)
eval "$cmd"
fi
if [ "$tta" ] ; then

Loading…
Cancel
Save