SVN: rc-scripts/trunk/rc.d/init.d/functions

baggins baggins at pld-linux.org
Fri Apr 27 22:45:52 CEST 2007


Author: baggins
Date: Fri Apr 27 22:45:50 2007
New Revision: 8483

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
- restore stderr redirection


Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions	(original)
+++ rc-scripts/trunk/rc.d/init.d/functions	Fri Apr 27 22:45:50 2007
@@ -50,9 +50,11 @@
 [ -z "$COLUMNS" ] && COLUMNS=80
 
 if [ -z "$VSERVER" -o "$VSERVER" = "detect" ]; then
-	while read _f _ctx; do
-		[ "$_f" = "VxID:" -o "$_f" = "s_context:" ] && break
-	done </proc/self/status
+	{
+		while read _f _ctx; do
+			[ "$_f" = "VxID:" -o "$_f" = "s_context:" ] && break
+		done </proc/self/status
+	} 2>/dev/null
 	if [ -z "$_ctx" -o "$_ctx" = "0" ]; then
 		VSERVER=no
 	else


More information about the pld-cvs-commit mailing list