From 61f397bd6a55bdbe26be27049848b4b59dbcb43f Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 20 Apr 2022 07:21:30 +0000 Subject: [PATCH] Runlevel detection was overwrite incorrectely git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@6252 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check b/check index d2995c9..31c14bd 100755 --- a/check +++ b/check @@ -17,7 +17,7 @@ if [ "`whoami`" != "root" ]; then fi RUNLEVEL=`runlevel | cut -f 2 -d ' '` -[ -n "$RUNLEVEL" ] && RUNLEVEL=0 +[ "x$RUNLEVEL" == "x" ] && RUNLEVEL=0 if [ $RUNLEVEL -eq 0 ] || [ $RUNLEVEL -eq 6 ]; then echo "Arret ou reboot en cours : on sort" exit