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:
1
check
1
check
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user