mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
New version, tarball. Debian has for some reason broken procps / uptime support, for
as of yet unknown reasons, so rather than wait to see the bug resolved, I'm just removing uptime as a depenendency, though this is a short term hack only because we don't know why it was removed from procps or if that was just a mistake, or if other things as well might be vanishing from procps. Am leaving in however uname as dependency because inxi cannot determine what platform it is when it starts without that.
This commit is contained in:
parent
14cb52669a
commit
3864eab62f
21
inxi
21
inxi
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### Version: 2.2.14
|
||||
#### Date: 2014-09-26
|
||||
#### Version: 2.2.15
|
||||
#### Date: 2014-10-12
|
||||
#### Patch Number: 00
|
||||
########################################################################
|
||||
#### SPECIAL THANKS
|
||||
|
@ -53,7 +53,7 @@
|
|||
#### DEPENDENCIES
|
||||
#### * bash >=3.0 (bash); df, readlink, stty, tr, uname, wc (coreutils);
|
||||
#### gawk (gawk); grep (grep); lspci (pciutils);
|
||||
#### ps, uptime (procps); find (findutils)
|
||||
#### ps, uptime (procps - may change in debian); find (findutils)
|
||||
#### * Also the proc filesystem should be present and mounted for Linux
|
||||
#### * Some features, like -M and -d will not work, or will work incompletely,
|
||||
#### if /sys is missing
|
||||
|
@ -1062,7 +1062,7 @@ check_required_apps()
|
|||
eval $LOGFS
|
||||
local app_name=''
|
||||
# bc removed from deps for now
|
||||
local depends="df gawk grep ps readlink tr uname uptime wc"
|
||||
local depends="df gawk grep ps readlink tr uname wc"
|
||||
|
||||
if [[ -z $BSD_TYPE ]];then
|
||||
depends="$depends lspci"
|
||||
|
@ -2066,7 +2066,7 @@ check_recommends_items()
|
|||
sed:sed~sed~sed~:string_replace
|
||||
tr:coreutils~coreutils~coreutils~:character_replace
|
||||
uname:uname~coreutils~coreutils~:kernel_data
|
||||
uptime:procps~procps~procps~:
|
||||
uptime:procps-(check-package-owner)~procps~procps~:
|
||||
wc:coreutils~coreutils~coreutils~:word_character_count
|
||||
'
|
||||
local x_recommends='
|
||||
|
@ -10380,11 +10380,14 @@ get_unmounted_partition_filesystem()
|
|||
get_uptime()
|
||||
{
|
||||
eval $LOGFS
|
||||
local uptime_value=''
|
||||
## note: removing gsub(/ /,"",a); to get get space back in there, goes right before print a
|
||||
local uptime_value="$( uptime | gawk '{
|
||||
if type -p uptime &>/dev/null;then
|
||||
uptime_value="$( uptime | gawk '{
|
||||
a = gensub(/^.*up *([^,]*).*$/,"\\1","g",$0)
|
||||
print a
|
||||
}' )"
|
||||
fi
|
||||
echo "$uptime_value"
|
||||
log_function_data "uptime_value: $uptime_value"
|
||||
eval $LOGFE
|
||||
|
@ -10912,6 +10915,9 @@ print_short_data()
|
|||
local short_data='' i='' b_background_black='false'
|
||||
local memory=$( get_memory_data )
|
||||
local up_time="$( get_uptime )"
|
||||
if [[ -z $up_time ]];then
|
||||
up_time='N/A - missing uptime?'
|
||||
fi
|
||||
|
||||
# set A_CPU_CORE_DATA
|
||||
get_cpu_core_count
|
||||
|
@ -11872,6 +11878,9 @@ print_info_data()
|
|||
local memory="$( get_memory_data )"
|
||||
local processes=$(( $( wc -l <<< "$Ps_aux_Data" ) - 1 ))
|
||||
local up_time="$( get_uptime )"
|
||||
if [[ -z $up_time ]];then
|
||||
up_time='N/A - missing uptime?'
|
||||
fi
|
||||
local patch_version_number=$( get_patch_version_string )
|
||||
local gcc_installed='' gcc_others='' closing_data=''
|
||||
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
=====================================================================================
|
||||
Version: 2.2.15
|
||||
Patch Version: 00
|
||||
Script Date: 2014-10-12
|
||||
-----------------------------------
|
||||
Changes:
|
||||
-----------------------------------
|
||||
New version, tarball. Debian has for some reason broken procps / uptime support, for
|
||||
as of yet unknown reasons, so rather than wait to see the bug resolved, I'm just removing
|
||||
uptime as a depenendency, though this is a short term hack only because we don't know
|
||||
why it was removed from procps or if that was just a mistake, or if other things as well might
|
||||
be vanishing from procps. Am leaving in however uname as dependency because inxi cannot
|
||||
determine what platform it is when it starts without that.
|
||||
|
||||
-----------------------------------
|
||||
-- Harald Hope - Sun, 12 Oct 2014 12:07:03 -0700
|
||||
|
||||
=====================================================================================
|
||||
Version: 2.2.14
|
||||
Patch Version: 00
|
||||
|
|
Loading…
Reference in a new issue