From: Erik van der Kouwe Date: Wed, 6 Jan 2010 08:20:12 +0000 (+0000) Subject: Fix netconf alignment now that there is a number 10" X-Git-Tag: v3.1.6~108 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/jquery.js?a=commitdiff_plain;h=49ec221a92dd6405555fe1f1980fd990f3e9aca6;p=minix.git Fix netconf alignment now that there is a number 10" Note: should fix again when we reach 100 :) --- diff --git a/commands/scripts/netconf.sh b/commands/scripts/netconf.sh index 0c7200a91..ff1e0d6be 100755 --- a/commands/scripts/netconf.sh +++ b/commands/scripts/netconf.sh @@ -86,11 +86,12 @@ card() done if [ $card_avail -gt 0 ] then - echo $card_number.\ \*\ $card_name + card_mark="*" eth_default=$card_number else - echo $card_number.\ \ \ $card_name + card_mark=" " fi + printf "%2d. %s %s\n" "$card_number" "$card_mark" "$card_name" } cards()