X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fbootscripts%2Ffunctions;h=7db7545ede57c60a16192e7ceb72b3f211bd5fba;hb=c63c8a18e9d59b3ecc32acef349f8cb732eee511;hp=f0eef13667944c9eb6ced131d5cb27c95f8c7886;hpb=6d3d50c17b24ef41f917f5776696eca810198092;p=hvlinux.git diff --git a/stage1/bootscripts/functions b/stage1/bootscripts/functions index f0eef13..7db7545 100644 --- a/stage1/bootscripts/functions +++ b/stage1/bootscripts/functions @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # General shell functions @@ -51,7 +51,7 @@ BRACKET="\\033[1;34m" # LOGLEVEL="1" --> Prevents all messages, expect panic messages, from # appearing on the console. # LOGLEVEL="8" --> Allow all messages to appear on the console. -LOGLEVEL="4" +LOGLEVEL="3" # Timezone export TZ="America/Montreal" @@ -449,7 +449,7 @@ reloadproc() if [ ${?} -ne 0 ]; then sleep 2 - if statusproc ${base} | grep "not running" 1> /dev/null 2>&1; then + if statusproc ${base} | grep -q "not running"; then return ${EXIT_CODE_FAILURE} fi fi