Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ax=`vnstat --oneline | awk -F ";" '{print $11}'`
- if [[ "$ax" == *GiB* ]]
- then
- if [ $(echo "$(echo "$ax" | sed 's/ GiB//g') > 900"|bc) -eq 1 ]
- then
- shutdown -h now
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement