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

jajcus jajcus at pld-linux.org
Tue Jun 8 11:01:42 CEST 2010


Author: jajcus
Date: Tue Jun  8 11:01:42 2010
New Revision: 11552

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
- /proc/cmdline may be unavailable (like in a VServer) make cat quiet in such case

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	Tue Jun  8 11:01:42 2010
@@ -1090,7 +1090,7 @@
 		USE_UPSTART="no"
 		return 1
 	fi
-	local cmdline=$(cat /proc/cmdline)
+	local cmdline=$(cat /proc/cmdline 2>/dev/null)
 	if strstr "$cmdline" "pld.no-upstart" ; then
 		USE_UPSTART="no"
 		return 1


More information about the pld-cvs-commit mailing list