slitaz-base-files annotate rootfs/usr/bin/slitaz @ rev 233
/usr/bin/slitaz: small improvment
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 13 01:36:45 2014 +0200 (2014-04-13) |
parents | e4b6b8a92bc8 |
children |
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 Home path : $SLITAZ_HOME |
pankso@147 | 23 Configs : $SLITAZ_CONFIGS |
pankso@228 | 24 Main config : $SLITAZ_CONFIGS/slitaz.conf |
pankso@147 | 25 Log files : $SLITAZ_LOGS |
pankso@147 | 26 Packages DB : $PKGS_DB |
pankso@147 | 27 Installed : $(ls $PKGS_DB/installed | wc -l) packages |
pankso@147 | 28 Mirror : $(cat $PKGS_DB/mirror) |
pankso@228 | 29 System date : $(date) |
pankso@233 | 30 -------------- |
pankso@233 | 31 Boot options : $(cat /proc/cmdline) |
pankso@147 | 32 EOT |
pankso@233 | 33 separator |
pankso@228 | 34 newline ;; |
pankso@228 | 35 *help|*usage) |
pankso@147 | 36 echo "Usage: $(basename $0)" ;; |
pankso@147 | 37 esac |
pankso@147 | 38 |
pankso@147 | 39 exit 0 |