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