# HG changeset patch # User Christophe Lincoln # Date 1394898507 -3600 # Node ID 1b4800da5288fd6de288bdd01ddb9965852d0c30 # Parent d3376f27881867e66560cd66ea2d524753b8a949 Rename tazarm to slitaz-arm diff -r d3376f278818 -r 1b4800da5288 rootfs/usr/bin/slitaz-arm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rootfs/usr/bin/slitaz-arm Sat Mar 15 16:48:27 2014 +0100 @@ -0,0 +1,56 @@ +#!/bin/sh +# +# slitaz-arm - The compemented ARM version of /usr/bin/slitaz +# +. /lib/libtaz.sh + +[ "$log" ] || log=$(pwd)/slitaz-arm.log + +# Handle commands +case "$1" in + info) + /usr/bin/slitaz + # To remove on next slitaz-base-file release + echo -n "Machine type : " && uname -m + echo -n "System date : " && date + newline ;; + + flavor) + if [ -f "/etc/slitaz/flavor.conf" ]; then + . /etc/slitaz/flavor.conf + newline + boldify "SliTaz ARM flavor" + separator + echo "Flavor : $FLAVOR" + echo "Build date : $BUILD_DATE" + echo "Maintainer : $MAINTAINER" + echo "Short desc : $SHORT_DESC" + echo "Web site : $WEB_SITE" + else + echo "Missing: /etc/slitaz/flavor.conf" + fi + separator && newline ;; + + report) + echo -e "--> uname:" | tee $log + uname -a | tee -a $log + + echo -e "--> ls[pci/usb]:" | tee -a $log + lspci | tee -a $log + lsusb 2>&1 | tee -a $log + + echo -e "--> dmesg:" | tee -a $log + dmesg | tee -a $log + + echo -e "--> ifconfig:" | tee -a $log + ifconfig -a | tee -a $log + + newline + echo "Log path: $log" + newline ;; + + *) + echo "Usage: $(basename $0) [info|flavor|report] [--log=]" ;; +esac +exit 0 + diff -r d3376f278818 -r 1b4800da5288 rootfs/usr/bin/tazarm --- a/rootfs/usr/bin/tazarm Sat Mar 15 16:42:19 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ -#!/bin/sh -# -# tazarm - A small tool designed to run on ARM devices. -# -. /lib/libtaz.sh - -[ "$log" ] || log=$(pwd)/slitaz-arm.log - -# Handle commands -case "$1" in - info) - /usr/bin/slitaz - # To remove on next slitaz-base-file release - echo -n "Machine type : " && uname -m - echo -n "System date : " && date - newline ;; - - flavor) - if [ -f "/etc/slitaz/flavor.conf" ]; then - . /etc/slitaz/flavor.conf - newline - boldify "SliTaz ARM flavor" - separator - echo "Flavor : $FLAVOR" - echo "Build date : $BUILD_DATE" - echo "Maintainer : $MAINTAINER" - echo "Short desc : $SHORT_DESC" - echo "Web site : $WEB_SITE" - else - echo "Missing: /etc/slitaz/flavor.conf" - fi - separator && newline ;; - - report) - echo -e "--> uname:" | tee $log - uname -a | tee -a $log - - echo -e "--> ls[pci/usb]:" | tee -a $log - lspci | tee -a $log - lsusb 2>&1 | tee -a $log - - echo -e "--> dmesg:" | tee -a $log - dmesg | tee -a $log - - echo -e "--> ifconfig:" | tee -a $log - ifconfig -a | tee -a $log - - newline - echo "Log path: $log" - newline ;; - - *) - echo "Usage: $(basename $0) [info|flavor|report] [--log=]" ;; -esac -exit 0 -