mps-fonks

This commit is contained in:
milisbir 2018-01-01 23:22:58 +02:00
parent 64f2af3097
commit 50f128c3d1
1 changed files with 13 additions and 1 deletions

14
bin/mps
View File

@ -3,7 +3,7 @@
if [ -f /etc/mps.conf ];then
. /etc/mps.conf
fi
. /root/bin/fonks.sh
versiyon="1.1.7 Milis Paket Sistemi"
iletisim="milisarge@gmail.com"
paketdepo="/depo/paketler/"
@ -1522,6 +1522,18 @@ dosya_karsilastir(){
fi
}
# renkli mesaj
ryaz() {
[ -z "$1" ] && return
: ${color=$1}
shift
case $color in
0*) echo -e "\\033[${color:-38}m$@\\033[39m";;
*) echo -e "\\033[1;${color:-38}m$@\\033[0;39m";;
esac
unset color
}
log_analiz(){
local zaman durum
zaman=$1