Commit 4fdab485 authored by Peter Möller's avatar Peter Möller

Added flag for uptime

parent a40a2798
......@@ -58,6 +58,7 @@ CPUBugs=""
# Ex: CPUBugs='cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit'
Kernel="$(uname -r 2>/dev/null)" # Ex: Kernel=3.10.105
Architecture="$(uname -m 2>/dev/null)" # Ex: Architecture=x86_64
Uptime="$(awk '{print int($1/86400)}' /proc/uptime)"
# Are we in a Virtual environment? No, not on a Synology!
VMenv=""
......@@ -102,7 +103,7 @@ ListeningPorts="$(netstat -tulpn 2>/dev/null | egrep "LISTEN" | egrep -v "\-\s*$
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# sysinfo
# Assemble the Flags string
Flags="\"selinux:$SELinux\", \"kernel:${Kernel}\", \"arch:${Architecture:---}\", \"fail2ban:$Fail2Ban\""
Flags="\"selinux:$SELinux\", \"kernel:${Kernel}\", \"arch:${Architecture:---}\", \"fail2ban:$Fail2Ban\", \"Uptime-days:$Uptime\""
# partitions
OUTPUT=""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment