aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/splash.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/splash.sh b/scripts/splash.sh
index f87efed..cb269d4 100644
--- a/scripts/splash.sh
+++ b/scripts/splash.sh
@@ -93,10 +93,10 @@ fi
_shutdown="no"
_silent="no"
-if grep -q silent /proc/cmdline; then
+if grep -q silent /proc/cmdline 2>/dev/null ; then
if [ "$splash_mode" = "splashy" ]; then
_silent="yes"
- elif [ "$splash_mode" = "bootsplash" ] && grep -q silent /proc/splash; then
+ elif [ "$splash_mode" = "bootsplash" ] && grep -q silent /proc/splash 2>/dev/null ; then
_silent="yes"
fi
fi
@@ -132,7 +132,7 @@ if [ "$1" == "stop" -a $_shutdown == "no" ]; then
fi
test -z "$progress" -a -z "$nbservices" && exit 0
-grep -vq "splash=silent" /proc/cmdline && exit 0
+grep -vq "splash=silent" /proc/cmdline 2>/dev/null && exit 0
if [ "$previous" == "3" -o "$previous" == "5" ] ; then
if [ "$runlevel" = "3" -o "$runlevel" == "5" ] ; then