mirror of
https://github.com/smxi/inxi.git
synced 2025-01-20 01:17:48 +00:00
version 1.6.7
Cleaned up recommends, finalized layout, tweaked output, ready to go now as a final I think.
This commit is contained in:
parent
9ee3d00315
commit
53f3a4e74f
44
inxi
44
inxi
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.6.6
|
#### version: 1.6.7
|
||||||
#### Date: June 10 2011
|
#### Date: June 10 2011
|
||||||
#### Patch Number: 05
|
#### Patch Number: 00
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -1437,26 +1437,35 @@ check_recommends()
|
||||||
|
|
||||||
echo "$SCRIPT_NAME will now begin checking for the programs it needs to operate."
|
echo "$SCRIPT_NAME will now begin checking for the programs it needs to operate."
|
||||||
echo $Line
|
echo $Line
|
||||||
echo 'Test One: Script Dependencies and Required System Directories.'
|
echo "Bash version: $( bash --version 2>&1 | awk 'BEGIN {IGNORECASE=1} /^GNU bash/ {print $4}' )"
|
||||||
echo $Line
|
if [[ -n $( type -p gawk ) ]];then
|
||||||
echo "You are running bash version: $( bash --version 2>&1 | awk 'BEGIN {IGNORECASE=1} /^GNU bash/ {print $4}' )"
|
echo "Gawk version: $( gawk --version 2>&1 | awk 'BEGIN {IGNORECASE=1} /^GNU Awk/ {print $3}' )"
|
||||||
|
fi
|
||||||
|
if [[ -n $( type -p sudo ) ]];then
|
||||||
|
echo "Sudo version: $( sudo -V 2>&1 | awk 'BEGIN {IGNORECASE=1} /^Sudo version/ {print $3}' )"
|
||||||
|
fi
|
||||||
echo $Line
|
echo $Line
|
||||||
|
echo "Test One: Required System Directories."
|
||||||
|
echo "If one of these system directories is missing, $SCRIPT_NAME cannot operate:"
|
||||||
|
echo
|
||||||
check_recommends_items 'required-dirs'
|
check_recommends_items 'required-dirs'
|
||||||
echo "If one of these applications is missing, $SCRIPT_NAME cannot operate."
|
echo "Test Two: Required Core Applications."
|
||||||
echo $Line
|
echo "If one of these applications is missing, $SCRIPT_NAME cannot operate:"
|
||||||
|
echo
|
||||||
check_recommends_items 'required-apps'
|
check_recommends_items 'required-apps'
|
||||||
echo 'Test Two: Script Recommends for Graphics features. If you do not use X these do not matter.'
|
echo 'Test Three: Script Recommends for Graphics Features. If you do not use X these do not matter.'
|
||||||
echo "If one of these applications is missing, $SCRIPT_NAME will have incomplete output."
|
echo "If one of these applications is missing, $SCRIPT_NAME will have incomplete output:"
|
||||||
echo $Line
|
echo
|
||||||
check_recommends_items 'recommended-x-apps'
|
check_recommends_items 'recommended-x-apps'
|
||||||
echo 'Test Three: Script Recommends for remaining features.'
|
echo 'Test Four: Script Recommends for Remaining Features.'
|
||||||
echo "If one of these applications is missing, $SCRIPT_NAME will have incomplete output."
|
echo "If one of these applications is missing, $SCRIPT_NAME will have incomplete output:"
|
||||||
echo $Line
|
echo
|
||||||
check_recommends_items 'recommended-apps'
|
check_recommends_items 'recommended-apps'
|
||||||
echo 'Test Four: System directories for various information.'
|
echo 'Test Five: System Directories for Various Information.'
|
||||||
echo "If one of these directories is missing, $SCRIPT_NAME will have incomplete output."
|
echo "If one of these directories is missing, $SCRIPT_NAME will have incomplete output:"
|
||||||
echo $Line
|
echo
|
||||||
check_recommends_items 'system-dirs'
|
check_recommends_items 'system-dirs'
|
||||||
|
echo 'All tests completed.'
|
||||||
}
|
}
|
||||||
# args: $1 - check item
|
# args: $1 - check item
|
||||||
check_recommends_items()
|
check_recommends_items()
|
||||||
|
@ -1592,7 +1601,8 @@ check_recommends_items()
|
||||||
do
|
do
|
||||||
application=$( cut -d ':' -f 1 <<< $item )
|
application=$( cut -d ':' -f 1 <<< $item )
|
||||||
if [[ $type == 'applications' ]];then
|
if [[ $type == 'applications' ]];then
|
||||||
echo '--------------------------------------------------------'
|
# echo '--------------------------------------------------------'
|
||||||
|
echo
|
||||||
package=$( cut -d ':' -f 2 <<< $item )
|
package=$( cut -d ':' -f 2 <<< $item )
|
||||||
package_deb=$( cut -d '~' -f 1 <<< $package )
|
package_deb=$( cut -d '~' -f 1 <<< $package )
|
||||||
package_pacman=$( cut -d '~' -f 2 <<< $package )
|
package_pacman=$( cut -d '~' -f 2 <<< $package )
|
||||||
|
|
Loading…
Reference in a new issue