slitaz-arm rev 60

Rename tazarm to slitaz-arm
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 15 16:48:27 2014 +0100 (2014-03-15)
parents d3376f278818
children 45169f4d9df0
files rootfs/usr/bin/slitaz-arm rootfs/usr/bin/tazarm
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rootfs/usr/bin/slitaz-arm	Sat Mar 15 16:48:27 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# slitaz-arm - The compemented ARM version of /usr/bin/slitaz
     1.7 +#
     1.8 +. /lib/libtaz.sh
     1.9 +
    1.10 +[ "$log" ] || log=$(pwd)/slitaz-arm.log
    1.11 +
    1.12 +# Handle commands
    1.13 +case "$1" in
    1.14 +	info)
    1.15 +		/usr/bin/slitaz
    1.16 +		# To remove on next slitaz-base-file release
    1.17 +		echo -n "Machine type : " && uname -m
    1.18 +		echo -n "System date  : " && date
    1.19 +		newline ;;
    1.20 +	
    1.21 +	flavor)
    1.22 +		if [ -f "/etc/slitaz/flavor.conf" ]; then
    1.23 +			. /etc/slitaz/flavor.conf
    1.24 +			newline
    1.25 +			boldify "SliTaz ARM flavor"
    1.26 +			separator
    1.27 +			echo "Flavor     : $FLAVOR"
    1.28 +			echo "Build date : $BUILD_DATE"
    1.29 +			echo "Maintainer : $MAINTAINER"
    1.30 +			echo "Short desc : $SHORT_DESC"
    1.31 +			echo "Web site   : $WEB_SITE"
    1.32 +		else
    1.33 +			echo "Missing: /etc/slitaz/flavor.conf"
    1.34 +		fi 
    1.35 +		separator && newline ;;
    1.36 +	
    1.37 +	report)
    1.38 +		echo -e "--> uname:" | tee $log
    1.39 +		uname -a | tee -a $log
    1.40 +		
    1.41 +		echo -e "--> ls[pci/usb]:" | tee -a $log
    1.42 +		lspci | tee -a $log
    1.43 +		lsusb 2>&1 | tee -a $log
    1.44 +		
    1.45 +		echo -e "--> dmesg:" | tee -a $log
    1.46 +		dmesg | tee -a $log
    1.47 +		
    1.48 +		echo -e "--> ifconfig:" | tee -a $log
    1.49 +		ifconfig -a | tee -a $log 
    1.50 +		
    1.51 +		newline
    1.52 +		echo "Log path: $log" 
    1.53 +		newline ;;
    1.54 +	
    1.55 +	*)
    1.56 +		echo "Usage: $(basename $0) [info|flavor|report] [--log=]" ;;
    1.57 +esac
    1.58 +exit 0
    1.59 +	
     2.1 --- a/rootfs/usr/bin/tazarm	Sat Mar 15 16:42:19 2014 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,56 +0,0 @@
     2.4 -#!/bin/sh
     2.5 -#
     2.6 -# tazarm - A small tool designed to run on ARM devices.
     2.7 -#
     2.8 -. /lib/libtaz.sh
     2.9 -
    2.10 -[ "$log" ] || log=$(pwd)/slitaz-arm.log
    2.11 -
    2.12 -# Handle commands
    2.13 -case "$1" in
    2.14 -	info)
    2.15 -		/usr/bin/slitaz
    2.16 -		# To remove on next slitaz-base-file release
    2.17 -		echo -n "Machine type : " && uname -m
    2.18 -		echo -n "System date  : " && date
    2.19 -		newline ;;
    2.20 -	
    2.21 -	flavor)
    2.22 -		if [ -f "/etc/slitaz/flavor.conf" ]; then
    2.23 -			. /etc/slitaz/flavor.conf
    2.24 -			newline
    2.25 -			boldify "SliTaz ARM flavor"
    2.26 -			separator
    2.27 -			echo "Flavor     : $FLAVOR"
    2.28 -			echo "Build date : $BUILD_DATE"
    2.29 -			echo "Maintainer : $MAINTAINER"
    2.30 -			echo "Short desc : $SHORT_DESC"
    2.31 -			echo "Web site   : $WEB_SITE"
    2.32 -		else
    2.33 -			echo "Missing: /etc/slitaz/flavor.conf"
    2.34 -		fi 
    2.35 -		separator && newline ;;
    2.36 -	
    2.37 -	report)
    2.38 -		echo -e "--> uname:" | tee $log
    2.39 -		uname -a | tee -a $log
    2.40 -		
    2.41 -		echo -e "--> ls[pci/usb]:" | tee -a $log
    2.42 -		lspci | tee -a $log
    2.43 -		lsusb 2>&1 | tee -a $log
    2.44 -		
    2.45 -		echo -e "--> dmesg:" | tee -a $log
    2.46 -		dmesg | tee -a $log
    2.47 -		
    2.48 -		echo -e "--> ifconfig:" | tee -a $log
    2.49 -		ifconfig -a | tee -a $log 
    2.50 -		
    2.51 -		newline
    2.52 -		echo "Log path: $log" 
    2.53 -		newline ;;
    2.54 -	
    2.55 -	*)
    2.56 -		echo "Usage: $(basename $0) [info|flavor|report] [--log=]" ;;
    2.57 -esac
    2.58 -exit 0
    2.59 -