]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix netconf alignment now that there is a number 10"
authorErik van der Kouwe <erik@minix3.org>
Wed, 6 Jan 2010 08:20:12 +0000 (08:20 +0000)
committerErik van der Kouwe <erik@minix3.org>
Wed, 6 Jan 2010 08:20:12 +0000 (08:20 +0000)
Note: should fix again when we reach 100 :)

commands/scripts/netconf.sh

index 0c7200a91aa312248aa523c4007ac305b02f19a7..ff1e0d6be178038739eedf935360440efca8fdb6 100755 (executable)
@@ -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()