slitaz-base-files diff rootfs/usr/bin/slitaz @ rev 228

Small imprivment to /usr/bin/slitaz
author Christophe Lincoln <pankso@slitaz.org>
date Mon Mar 03 15:36:34 2014 +0100 (2014-03-03)
parents 3c20ad5a68ea
children 2c88b0d80534
line diff
     1.1 --- a/rootfs/usr/bin/slitaz	Fri May 11 14:13:37 2012 +0200
     1.2 +++ b/rootfs/usr/bin/slitaz	Mon Mar 03 15:36:34 2014 +0100
     1.3 @@ -10,25 +10,28 @@
     1.4  : ${PKGS_DB=/var/lib/tazpkg}
     1.5  
     1.6  case "$1" in
     1.7 -	""|--output=*)
     1.8 -		echo ""
     1.9 +	*)
    1.10 +		newline
    1.11  		boldify "SliTaz GNU/Linux"
    1.12  		separator
    1.13  		cat << EOT
    1.14  Release      : $SLITAZ_RELEASE
    1.15  Architecture : $SLITAZ_ARCH
    1.16  Kernel       : $(uname -r)
    1.17 +Machine type : $(uname -m)
    1.18  Boot options : $(cat /proc/cmdline)
    1.19  Home path    : $SLITAZ_HOME
    1.20  Configs      : $SLITAZ_CONFIGS
    1.21 +Main config  : $SLITAZ_CONFIGS/slitaz.conf
    1.22  Log files    : $SLITAZ_LOGS
    1.23  Packages DB  : $PKGS_DB
    1.24  Installed    : $(ls $PKGS_DB/installed | wc -l) packages
    1.25  Mirror       : $(cat $PKGS_DB/mirror)
    1.26 +System date  : $(date)
    1.27  EOT
    1.28 -		separator
    1.29 -		echo -e "Config file: /etc/slitaz/slitaz.conf\n" ;;
    1.30 -	*)
    1.31 +		separato
    1.32 +		newline ;;
    1.33 +	*help|*usage)
    1.34  		echo "Usage: $(basename $0)" ;;
    1.35  esac
    1.36