From 5afc3c7d5eb021b70da0d78181e2f452e3c5900a Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 30 Jul 2021 14:49:55 +0000 Subject: [PATCH] Manage correctely the check lunched in the startup. Do not put a awful bash exception git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@6241 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- check | 1 + 1 file changed, 1 insertion(+) diff --git a/check b/check index e9b9367..6b0d000 100755 --- a/check +++ b/check @@ -17,6 +17,7 @@ if [ "`whoami`" != "root" ]; then fi RUNLEVEL=`runlevel | cut -f 2 -d ' '` +[ -n "$RUNLEVEL" ] && RUNLEVEL=0 if [ $RUNLEVEL -eq 0 ] || [ $RUNLEVEL -eq 6 ]; then echo "Arret ou reboot en cours : on sort" exit