slitaz-base-files view rootfs/usr/bin/slitaz @ rev 147
Add SLITAZ_ARCH and PKGS_DB in slitaz.conf and add /usr/bin/slitaz
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 11 14:13:37 2012 +0200 (2012-05-11) |
parents | |
children | e4b6b8a92bc8 |
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 ""|--output=*)
14 echo ""
15 boldify "SliTaz GNU/Linux"
16 separator
17 cat << EOT
18 Release : $SLITAZ_RELEASE
19 Architecture : $SLITAZ_ARCH
20 Kernel : $(uname -r)
21 Boot options : $(cat /proc/cmdline)
22 Home path : $SLITAZ_HOME
23 Configs : $SLITAZ_CONFIGS
24 Log files : $SLITAZ_LOGS
25 Packages DB : $PKGS_DB
26 Installed : $(ls $PKGS_DB/installed | wc -l) packages
27 Mirror : $(cat $PKGS_DB/mirror)
28 EOT
29 separator
30 echo -e "Config file: /etc/slitaz/slitaz.conf\n" ;;
31 *)
32 echo "Usage: $(basename $0)" ;;
33 esac
35 exit 0