[video] 新增video线管的内容
This commit is contained in:
@@ -330,6 +330,18 @@ get_ipv4_info() {
|
||||
public_ipv4="$(wget -q -T10 -O- ipinfo.io/ip)"
|
||||
public_ipv6="$(curl -q --max-time 5 -6 https://ifconfig.co/ip)"
|
||||
|
||||
if [[ $city -eq "" ]]; then
|
||||
city="Chengdu"
|
||||
fi
|
||||
|
||||
if [[ $country -eq "" ]]; then
|
||||
country="CN"
|
||||
fi
|
||||
|
||||
if [[ $region -eq "" ]]; then
|
||||
region="Shuangliu"
|
||||
fi
|
||||
|
||||
if [ -z "$public_ipv4" ]; then
|
||||
public_ipv4=" "
|
||||
fi
|
||||
@@ -458,7 +470,7 @@ collect_system_info() {
|
||||
uptime | head -1 | awk -F'load average:' '{print $2}' | sed 's/^[ \t]*//;s/[ \t]*$//'
|
||||
)
|
||||
fi
|
||||
os_info=$(get_host_arch_info)
|
||||
os_info=$(get_host_arch_info | tr "\n" " ")
|
||||
arch=$(uname -m)
|
||||
local l_bit
|
||||
if command_exists "getconf"; then
|
||||
|
||||
Reference in New Issue
Block a user