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

Added flag for uptime

parent aa602d3b
......@@ -99,6 +99,8 @@ if [ ! "$(echo $MacModel | cut -c1-3)" = "Mac" -a ! "$(echo $MacModel | cut -c1-
else
VMenv=""
fi
# Uptime
Uptime="$(python -c "print(float(($(date +%s)-$(sysctl -n kern.boottime | awk '{print $4}' | sed -e 's/,//'))/86400))" | cut -d\. -f1)"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
......@@ -140,7 +142,7 @@ else
fi
# Assemble the Flags string
Flags="\"SIP:$SIP\", \"ALF:${ALF}\", \"PFF:$PFF\", \"FileVault:$FileVault\", \"GateKeeper:$GateKeeper\", \"LittleSnitch:$LittleSnitch\", \"arch:${Architecture:---}\", \"selinux:N/A\""
Flags="\"SIP:$SIP\", \"ALF:${ALF}\", \"PFF:$PFF\", \"FileVault:$FileVault\", \"GateKeeper:$GateKeeper\", \"LittleSnitch:$LittleSnitch\", \"arch:${Architecture:---}\", \"selinux:N/A\", \"Uptime-days:$Uptime\""
# Ex: Flags='"SIP:Enabled", "ALF:Enabled", "PFF:Disabled", "FileVault:Off", "GateKeeper:Enabled", "LittleSnitch:Not running", "arch:x86_64", "selinux:N/A"'
# partitions
......
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