#! /bin/bash IFS=$'\n\t' host=$1 root=${host}/rootfs host=$(basename $host) hostname=$(grep HOSTNAME ${root}/etc/sysconfig/network 2>/dev/null| cut -f2 -d=) stat --printf "%y;" ${root}/root/.bash_history stat --printf "%y;" ${root}/home/formation/.bash_history stat --printf "%y;" ${root}/etc/motd if( grep -i -qE "today" ${root}/etc/profile.d/zalias.sh ) ; then echo -ne "1;" ; else echo -ne "0;" fi if( grep -i -qE "PS1" ${root}/etc/profile.d/zconf.sh ) ; then echo -ne "1;" ; else echo -ne "0;" fi if( grep -i -qE "HISTSIZE" ${root}/etc/profile.d/zconf.sh ) ; then echo -ne "1;" ; else echo -ne "0;" fi