slitaz-base-files view 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
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 Home path : $SLITAZ_HOME
23 Configs : $SLITAZ_CONFIGS
24 Main config : $SLITAZ_CONFIGS/slitaz.conf
25 Log files : $SLITAZ_LOGS
26 Packages DB : $PKGS_DB
27 Installed : $(ls $PKGS_DB/installed | wc -l) packages
28 Mirror : $(cat $PKGS_DB/mirror)
29 System date : $(date)
30 --------------
31 Boot options : $(cat /proc/cmdline)
32 EOT
33 separator
34 newline ;;
35 *help|*usage)
36 echo "Usage: $(basename $0)" ;;
37 esac
39 exit 0