slitaz-tools rev 661

tazinst: Add command: tazinst log (print log contents)
author Dominique Corbex <domcox@slitaz.org>
date Fri Aug 05 22:22:18 2011 +0200 (2011-08-05)
parents 56ee2e6e63af
children 9f0aac29b476
files installer/tazinst
line diff
     1.1 --- a/installer/tazinst	Mon Aug 01 22:56:46 2011 +0200
     1.2 +++ b/installer/tazinst	Fri Aug 05 22:22:18 2011 +0200
     1.3 @@ -19,7 +19,7 @@
     1.4  # 6: SliTaz system to upgrade not found
     1.5  # 8: Internal error
     1.6  
     1.7 -VERSION=3.21
     1.8 +VERSION=3.22
     1.9  
    1.10  # Internationalization
    1.11  . /usr/bin/gettext.sh
    1.12 @@ -55,6 +55,7 @@
    1.13  	echo -e "config        `gettext \"Generate a configuration file.\"`"
    1.14  	echo -e "check         `gettext \"Check validity of the configuration file.\"`"
    1.15  	echo -e "showurl       `gettext \"Show the full URL of a predefined URL (stable|cooking|rolling).\"`"
    1.16 +	echo -e "log           `gettext \"Display log file contents.\"`"
    1.17  	echo -e "cli           `gettext \"Install or upgrade using command line options:\"`"
    1.18  	echo -e "  -i             `gettext \"Full Install (not upgrading, all present data will be lost).\"`"
    1.19  	echo -e "  -u             `gettext \"Upgrade (Needs an active internet connection).\"`"
    1.20 @@ -1292,6 +1293,8 @@
    1.21  		init $@
    1.22  		read_configuration_file $2
    1.23  		check_vars ;;
    1.24 +	log)
    1.25 +		cat $LOG ;;
    1.26  	version)
    1.27  		echo $VERSION ;;
    1.28  	usage|*)