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