Skip to content

Commit

Permalink
Update 30-diskinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored Sep 14, 2019
1 parent f6c732b commit ab7c4cb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions menu/motd/30-diskinfo
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@ for line in "${dfs[@]}"; do

output+=$(echo " ${path} ${color}${used}${undim} used, ${color}${free}${undim} free, ${color}${total}${undim} total\n")

#google hack for loginshell

tdrive=$(tail -n 1 /var/plexguide/tduncrypt.log)
gdrive=$(tail -n 1 /var/plexguide/gduncrypt.log)
tcrypt=$(tail -n 1 /var/plexguide/tdcrypt.log)
gcrypt=$(tail -n 1 /var/plexguide/gdcrypt.log)

done
printf "${output}" |
awk '{printf " %.15s %s\n", $1 "............:", $2 " " $3 " " $4 " " $5 " " $6 " " $7}'

echo ""

echo " Google Cloud Used Space:"
echo""
echo " GDrive | uncrypted : " $gdrive
echo " TDrive | uncrypted : " $tdrive
echo ""
echo " GDrive | crypted : " $gcrypt
echo " TDrive | crypted : " $tcrypt

0 comments on commit ab7c4cb

Please sign in to comment.