mirror of
https://github.com/smxi/inxi.git
synced 2025-02-07 13:32:18 +00:00
Moved another function, move along, nothing to see here...
This commit is contained in:
parent
fb79d1117f
commit
3d4a4e8b6a
22
inxi
22
inxi
|
@ -9546,17 +9546,6 @@ get_partition_dev_data()
|
||||||
eval $LOGFE
|
eval $LOGFE
|
||||||
}
|
}
|
||||||
|
|
||||||
get_patch_version_string()
|
|
||||||
{
|
|
||||||
SELF_PATCH=${SELF_PATCH##*[0]} # strip leading zero(s)
|
|
||||||
|
|
||||||
if [[ -n $SELF_PATCH ]];then
|
|
||||||
SELF_PATCH="-$SELF_PATCH"
|
|
||||||
# for cases where it was for example: 00-bsd cleaned to --bsd trim out one -
|
|
||||||
SELF_PATCH="${SELF_PATCH/--/-}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# packs standard card arrays using the pciconf stuff
|
# packs standard card arrays using the pciconf stuff
|
||||||
# args: $1 - audio/network/display - matches first item in A_PCICONF_DATA arrays
|
# args: $1 - audio/network/display - matches first item in A_PCICONF_DATA arrays
|
||||||
get_pciconf_card_data()
|
get_pciconf_card_data()
|
||||||
|
@ -12529,6 +12518,17 @@ get_module_version_number()
|
||||||
eval $LOGFE
|
eval $LOGFE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_patch_version_string()
|
||||||
|
{
|
||||||
|
SELF_PATCH=${SELF_PATCH##*[0]} # strip leading zero(s)
|
||||||
|
|
||||||
|
if [[ -n $SELF_PATCH ]];then
|
||||||
|
SELF_PATCH="-$SELF_PATCH"
|
||||||
|
# for cases where it was for example: 00-bsd cleaned to --bsd trim out one -
|
||||||
|
SELF_PATCH="${SELF_PATCH/--/-}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# note: gawk doesn't support white spaces in search string, gave errors, so use [[:space:]] instead
|
# note: gawk doesn't support white spaces in search string, gave errors, so use [[:space:]] instead
|
||||||
# args: $1 - desktop/app command for --version; $2 - search string; $3 - gawk print number
|
# args: $1 - desktop/app command for --version; $2 - search string; $3 - gawk print number
|
||||||
get_program_version()
|
get_program_version()
|
||||||
|
|
Loading…
Reference in a new issue