Restore repo

This commit is contained in:
svk
2024-11-06 10:16:00 +03:00
commit 4189fcad46
87 changed files with 14088 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
case "$2" in
available)
echo $(/bin/df | /bin/grep "$1"| /usr/bin/awk '{print $4}')
;;
usage)
echo $(/bin/df | /bin/grep "$1"| /usr/bin/awk '{print $3}')
;;
percent)
echo $(/bin/df | /bin/grep "$1"| /usr/bin/awk '{print $5}' | tr -d "%")
;;
esac

View File

@@ -0,0 +1,3 @@
UserParameter=lxc.filesystem.usage[*],/usr/local/bin/get_fs_status.sh "$1" usage
UserParameter=lxc.filesystem.available[*],/usr/local/bin/get_fs_status.sh "$1" available
UserParameter=lxc.filesystem.usage.percent[*],/usr/local/bin/get_fs_status.sh "$1" percent