Runlevel detection was overwrite incorrectely

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@6252 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2022-04-20 07:21:30 +00:00
parent e40e4828c2
commit 61f397bd6a

2
check
View File

@@ -17,7 +17,7 @@ if [ "`whoami`" != "root" ]; then
fi fi
RUNLEVEL=`runlevel | cut -f 2 -d ' '` RUNLEVEL=`runlevel | cut -f 2 -d ' '`
[ -n "$RUNLEVEL" ] && RUNLEVEL=0 [ "x$RUNLEVEL" == "x" ] && RUNLEVEL=0
if [ $RUNLEVEL -eq 0 ] || [ $RUNLEVEL -eq 6 ]; then if [ $RUNLEVEL -eq 0 ] || [ $RUNLEVEL -eq 6 ]; then
echo "Arret ou reboot en cours : on sort" echo "Arret ou reboot en cours : on sort"
exit exit