#!/bin/sh [ `id -u` != 0 ] && { echo "Must be root"; exit 1; } for i in advcomp.tce squashfs-tools-4.0.tce; do sudo -u tc tce-wget ${i}; done mkdir inxi && cd inxi/ thisdir=`pwd` mkdir -p ${thisdir}/package/usr/local/bin/ && cd ${thisdir}/package/usr/local/bin/ wget http://smxi.org/inxi && chmod +x inxi ########## error message suppression ########## sed -i 614d inxi ############################################### cd ${thisdir}/package/ find usr/ -name inxi > ${thisdir}/inxi.tce.list tar czf ${thisdir}/inxi.tce --numeric-owner -T ${thisdir}/inxi.tce.list advdef -z4 ${thisdir}/inxi.tce mksquashfs ./ ${thisdir}/inxi.tcz cd ${thisdir} cp inxi.tce.list inxi.tcz.list echo -e "bash.tce\ncoreutils.tce\ngawk.tce\ngrep.tce\npci-utils.tcel\nprocps.tcel" > inxi.tce.dep sed 's/tce/tcz/' < inxi.tce.dep > inxi.tcz.dep for ext in tce tcz; do echo -e "Title:\t\t\tinxi.${ext}" > inxi.${ext}.info echo -e "Description:\t\tUniversal, portable system info script (TESTING)" >> inxi.${ext}.info echo -e "Version:\t\t1.0.17" >> inxi.${ext}.info echo -e "Author:\t\t\tMichiel de Boer, Scott Rogers, & Herald Hope" >> inxi.${ext}.info echo -e "Original-site:\t\thttp://techpatterns.com/forums/about1133.html" >> inxi.${ext}.info echo -e "Copying-policy:\t\tGPL" >> inxi.${ext}.info echo -en "Size:\t\t\t" >> inxi.${ext}.info du -sh inxi.${ext} | cut -f 1 >> inxi.${ext}.info echo -e "Extension_by:\t\tKingdomcome" >> inxi.${ext}.info echo -e "Comments:\t\tCommonly used in IRC, also can be run from CLI" >> inxi.${ext}.info echo -e "\t\t\tinxi -h will show possible switches to use for different outputs" >> inxi.${ext}.info echo -e "\t\t\tmodified to suppress error message for those using TinyX" >> inxi.${ext}.info echo -e "\t\t\tDepends on bash, coreutils, gawk, pci-utils, and procps" >> inxi.${ext}.info echo -e "\n\t\t\tThis extension is PPI compatible" >> inxi.${ext}.info echo -e "Change-log:\t\t2009/07/21 First Version" >> inxi.${ext}.info echo -e "Current:\t\t$(date +%Y/%m/%d) Bumped to 1.1.13" >> inxi.${ext}.info md5sum inxi.${ext} > inxi.${ext}.md5.txt done rm -rf package/