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 946 B
Newer Older
  • Learn to ignore specific revisions
  • 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=-"
    
    Freezed's avatar
    Freezed committed
    [[ -n $(zpool list) ]] &> /dev/null && zpool list -o name,size,free,frag,cap,health || df -h -t ext4 --output=source,used,avail,target
    
    Freezed's avatar
    Freezed committed
    
    echo -e "\n-=USAGE=-"
    [[ -e $USAGE_FILE ]] && cat ${USAGE_FILE} || echo "Usage unknown"