2021-11-04 16:32:27

This commit is contained in:
gbaconni
2021-11-04 16:32:27 +01:00
parent 3f4e14cf06
commit e1de66edef
2 changed files with 8 additions and 2 deletions

Binary file not shown.

View File

@@ -6,7 +6,7 @@
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2021/11/04 12:36:53 by gbaconni #+# #+# # # Created: 2021/11/04 12:36:53 by gbaconni #+# #+# #
# Updated: 2021/11/04 16:24:26 by gbaconni ### lausanne.ch # # Updated: 2021/11/04 16:32:24 by gbaconni ### lausanne.ch #
# # # #
# **************************************************************************** # # **************************************************************************** #
@@ -41,7 +41,12 @@ ft_load ()
ft_lastboot () ft_lastboot ()
{ {
echo "#Last boot: "$(who -a | grep -o '....-..-.. ..:..') echo "#Last boot: "$(who -b | grep -o '....-..-.. ..:..')
}
ft_lvmused ()
{
echo "#LVM use: "$(if vgdisplay | grep -q '[1-9]'; then echo "yes"; else echo "no"; fi)
} }
ft_update () ft_update ()
@@ -69,6 +74,7 @@ main ()
ft_disk ft_disk
ft_load ft_load
ft_lastboot ft_lastboot
ft_lvmused
ft_update ft_update
return 0 return 0
} }