slitaz-base-files annotate 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
rev   line source
pankso@147 1 #!/bin/sh
pankso@147 2 #
pankso@147 3 # SliTaz - Configs, release info, default paths, arch, kernel version, ...
pankso@147 4 #
pankso@147 5 . /lib/libtaz.sh
pankso@147 6 . /etc/slitaz/slitaz.conf
pankso@147 7
pankso@147 8 # /etc/slitaz/slitaz.conf
pankso@147 9 : ${SLITAZ_ARCH=i486}
pankso@147 10 : ${PKGS_DB=/var/lib/tazpkg}
pankso@147 11
pankso@147 12 case "$1" in
pankso@228 13 *)
pankso@228 14 newline
pankso@147 15 boldify "SliTaz GNU/Linux"
pankso@147 16 separator
pankso@147 17 cat << EOT
pankso@147 18 Release : $SLITAZ_RELEASE
pankso@147 19 Architecture : $SLITAZ_ARCH
pankso@147 20 Kernel : $(uname -r)
pankso@228 21 Machine type : $(uname -m)
pankso@147 22 Boot options : $(cat /proc/cmdline)
pankso@147 23 Home path : $SLITAZ_HOME
pankso@147 24 Configs : $SLITAZ_CONFIGS
pankso@228 25 Main config : $SLITAZ_CONFIGS/slitaz.conf
pankso@147 26 Log files : $SLITAZ_LOGS
pankso@147 27 Packages DB : $PKGS_DB
pankso@147 28 Installed : $(ls $PKGS_DB/installed | wc -l) packages
pankso@147 29 Mirror : $(cat $PKGS_DB/mirror)
pankso@228 30 System date : $(date)
pankso@147 31 EOT
pankso@228 32 separato
pankso@228 33 newline ;;
pankso@228 34 *help|*usage)
pankso@147 35 echo "Usage: $(basename $0)" ;;
pankso@147 36 esac
pankso@147 37
pankso@147 38 exit 0