Skip to content

Commit

Permalink
Update 10-sysinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Oct 16, 2019
1 parent 5303ed1 commit f019bc2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions menu/motd/10-sysinfo
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ UNIONFS=$(systemctl is-active pgunion)
HSTNAME=$(cat /etc/hostname)

###storage local part
mntused=$(df -h | grep "/mnt" | awk '{print $3}' | head -n 1)
mntavi=$(df -h | grep "/mnt" | awk '{print $4}' | head -n 1)
mntpercent=$(df -h | awk '{if($(NF) == "/") {print $(NF-1); exit;}}')
mntused=$(df -h /mnt | awk '{ a = $3 } END { print a }')
mntavi=$(df -h /mnt | awk '{ a = $4 } END { print a }')
mntpercent=$(df -h | awk '{if($(NF) == "/mnt") {print $(NF-1); exit;}}')

baseused=$(df -h | grep "/mnt" | awk '{print $3}' | head -n 1)
baseavi=$(df -h | grep "/mnt" | awk '{print $4}' | head -n 1)
baseused=$(df -h / | awk '{ a = $3 } END { print a }')
baseavi=$(df -h / | awk '{ a = $4 } END { print a }')
basepercent=$(df -h | awk '{if($(NF) == "/") {print $(NF-1); exit;}}')

#google hack for loginshell
Expand Down

0 comments on commit f019bc2

Please sign in to comment.