Skip to content

Commit

Permalink
Merge pull request #125 from knuton/status-show-data-storage-use
Browse files Browse the repository at this point in the history
Add persistent storage stats in status console
  • Loading branch information
krksgbr committed Sep 7, 2023
2 parents 1c3b7e8 + 26b60a5 commit ca21cc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/playos-status.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ let
screen=$(xrandr --current | grep '*' | awk '{print $1}')
networkCount=$(connmanctl services | grep wifi | wc -l)
rfid=$(opensc-tool --list-readers | pr -T -o 2)
dataDiskFree=$(df -h /mnt/data | pr -T -o 2)
controller=$(systemctl is-active playos-controller)
time=$(date +'%T %Z')
printf "\033c"
Expand All @@ -19,6 +20,8 @@ let
"Wi-Fi networks found: $networkCount" \
"RFID readers connected:" \
"$rfid" \
"Persistent storage:" \
"$dataDiskFree" \
"Controller: $controller" \
"Updated at: $time" \
> ${ttyPath}
Expand Down
1 change: 1 addition & 0 deletions controller/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- os: Split system definition into base and application layers
- os: Make build outputs and displayed system name configurable through application layer
- os: Include live system ISO in deployed outputs
- status screen: Display persistent storage usage statistics

# [2023.2.0] - 2023-03-06

Expand Down

0 comments on commit ca21cc7

Please sign in to comment.