Just a better explanation text

This commit is contained in:
Yann Esposito (Yogsototh) 2011-09-30 20:27:32 +02:00
parent 529722090f
commit b06085b70a

View file

@ -20,12 +20,12 @@ function stopquestion() {
} }
case $victim in case $victim in
$USER) stopquestion "Are you sure to kill you own processes?";; $USER) stopquestion "Are you sure to kill your own processes?";;
init|root) stopquestion "Are you sure to kill all '$victim' processes?";; init|root) stopquestion "Are you sure to kill all '$victim' processes?";;
} }
processlist=( $(ps aux | awk '{print $1" "$2}' | egrep '(krystelle|bastien|anna|jc)' | awk '{print $2}') ) processlist=( $(ps aux | awk '{print $1" "$2}' | egrep '(krystelle|bastien|anna|jc)' | awk '{print $2}') )
(($#processlist == 0)) && logexit "No process for user $victim" (($#processlist == 0)) && logexit "The user '$victim' doesn't run any process"
sudo kill -9 $processlist sudo kill -9 $processlist