From 211a322bd1a898cc25723205ed7baef461fd911f Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Mon, 30 Mar 2009 16:54:39 +0000 Subject: - Ensure no error is displayed at shutdown when /proc is unmounted --- scripts/splash.sh | 6 +++--- 1 file 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 -- cgit v1.2.1