diff --git a/check b/check index 8cee8b8..0c42b24 100755 --- a/check +++ b/check @@ -18,12 +18,12 @@ fi RUNLEVEL=`runlevel | cut -f 2 -d ' '` [ "x$RUNLEVEL" == "x" ] && RUNLEVEL=0 -if [ $RUNLEVEL -eq 0 ] || [ $RUNLEVEL -eq 6 ]; then +if [ "$RUNLEVEL" == "0" ] || [ "$RUNLEVEL" == "6" ]; then echo "Arret ou reboot en cours : on sort" exit fi -if [ $RUNLEVEL -eq 1 ]; then +if [ "$RUNLEVEL" == "1" ]; then echo "Démarrage en cours : on sort" exit fi