#!/bin/bash # NETTOYAGE clear # INC . /etc/profile.d/inc/colors.sh . /etc/profile.d/inc/vars.sh # LINUX TOOL . /etc/profile.d/inc/tool.sh ################ ### SHORTCUT ### ################ #F_DAT="${WHITE}$(date +"%A, %e %B %Y, %r")${NC}" F_DAT="${WHITE}$(LC_TIME=fr_FR.UTF-8 date +"%A, %e %B %Y, %r")${NC}" F_IPS="${YELLOW}IP Addresses.: ${WHITE}${IP}" F_UPT="${YELLOW}Uptime.......: ${WHITE}${UPTIME}" F_MEM="${YELLOW}Memory.......: ${WHITE}${MEMUSED} / ${MEMTOTAL} Go" F_LOD="${YELLOW}Load Averages: ${WHITE}${ONE}, ${FIVE}, ${FIFTEEN} (1, 5, 15 min)" F_VER="${WHITE} ${VERSION}" F_BAR_MEM="${YELLOW}Memory.......: $(draw_bar $M_PCT ${V1})" F_BAR_DSK="${YELLOW}Disk Usage...: $(draw_bar $D_PCT ${J1})" F_USR="${YELLOW}Nb acc user..: ${WHITE}${NBUSERS}" ###################### ### CUSTOM MESSAGE ### ###################### echo -e "${CYAN} ==[ You are connected to ${WHITE}$FULLNAME${CYAN} ]== ${GREEN} _ __ _ ${GREEN} ((-)).--.((-)) ${F_DAT} ${GREEN} / '' \\ ${F_VER} ${GREEN} ( \______/ ) ${GREEN} \ ( ) / ${F_IPS} ${GREEN} / /~~~~~~~~\ \ ${F_UPT} ${GREEN} /~~\/ / \ \/~~\ ${F_MEM} ${GREEN}( ( ( ) ) ) ${F_LOD} ${GREEN} \ \ \ \ / / / / ${F_BAR_MEM} ${GREEN} _\ \/ \.______./ \/ /_ ${F_BAR_DSK} ${GREEN} ___/ /\__________/\ \___ ${F_USR}" ################# ### WARNINGS ### ################# . /etc/profile.d/inc/warnings.sh echo -e "${GREEN}======================================================================${NONE}" ################# ### SERVICES ### ################# . /etc/profile.d/inc/services.sh ############## ### INFOS ### ############## . /etc/profile.d/inc/infos.sh ##################### ### BASH DISPLAY ### ##################### . /etc/profile.d/inc/ps1.sh ################## ### SEND MAIL ### ################## . /etc/profile.d/inc/mail_connect.sh