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
This commit is contained in:
2021-07-30 14:49:55 +00:00
parent 6f513e98b6
commit 5afc3c7d5e

1
check
View File

@@ -17,6 +17,7 @@ if [ "`whoami`" != "root" ]; then
fi fi
RUNLEVEL=`runlevel | cut -f 2 -d ' '` RUNLEVEL=`runlevel | cut -f 2 -d ' '`
[ -n "$RUNLEVEL" ] && 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