Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
zlogin 912 B
Newer Older
Freezed's avatar
Freezed committed
# ############################################# #
#                 ~/.zlogin                     #
#                                               #
#       This file is managed by Ansible         #
#       Manual edition will be overridden       #
#                                               #
#   https://lab.frogg.it/fcode/ansible/debian   #
#                                               #
# ############################################# #

USAGE_FILE=/var/.usage

lsb_release -d | sed 's/Description:/-=VERSION=-\t/g'

echo -e "-=UPTIME=-\t   $(uptime)\n"

echo -e "-=WHOisHERE=-\n $(w)\n"

echo -e "\n-=IPs=-\n    $(ip -br address|grep UP)\n"

echo -e "-=SCREEN=-\n   $(screen -list)"

echo -e "-=DISKSPACE=-"
[[ -n $(zpool list) ]] &> /dev/null && zpool list || df -h -t ext4 --output=source,used,avail,target

echo -e "\n-=USAGE=-"
[[ -e $USAGE_FILE ]] && cat ${USAGE_FILE} || echo "Usage unknown"