From 485bf6c6b13863c7457f7057e2c63e75bcf9bfea Mon Sep 17 00:00:00 2001 From: jjhua Date: Tue, 15 Jan 2013 05:16:47 +0000 Subject: [PATCH] use -a as a logical and between two expression; use cron as a Should-start for sles git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14879 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatpostinit1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/xcatpostinit1 b/xCAT/postscripts/xcatpostinit1 index 8e2ee30d5..c3ebb21a6 100755 --- a/xCAT/postscripts/xcatpostinit1 +++ b/xCAT/postscripts/xcatpostinit1 @@ -9,6 +9,7 @@ # Default-Start: 3 4 5 # Default-stop: 0 1 2 6 # Required-Start: $network $syslog +# Should-Start: cron # Required-Stop: # Short-Description: xCATpost # Description: xCAT post boot script @@ -36,7 +37,7 @@ start) REBOOT=`grep 'REBOOT' /opt/xcat/xcatinfo |cut -d= -f2` fi # if the xcatdsklspost file exists and this is a reboot - run xcatdsklspost with a mode of 6 - if [ "$REBOOT" = "TRUE" ] && [ -r /opt/xcat/xcatdsklspost ]; then + if [ "$REBOOT" = "TRUE" -a -r /opt/xcat/xcatdsklspost ]; then /opt/xcat/xcatdsklspost 6 else # run /opt/xcat/xcatinstallpost