From 406523eb5ccb4a1c98a878ae61b5589535dc9e98 Mon Sep 17 00:00:00 2001 From: nott Date: Mon, 14 Apr 2008 12:22:07 +0000 Subject: [PATCH] Add diskless post script to be called from init.d. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1031 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatpostinit | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 xCAT/postscripts/xcatpostinit diff --git a/xCAT/postscripts/xcatpostinit b/xCAT/postscripts/xcatpostinit new file mode 100644 index 000000000..e2e759420 --- /dev/null +++ b/xCAT/postscripts/xcatpostinit @@ -0,0 +1,35 @@ +#!/bin/sh +# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html +# chkconfig: 345 84 59 +# description: service node postboot script hack +# processname: xcatpostinit + +### BEGIN INIT INFO +# Provides: xcatpostinit +# Default-Start: 3 4 5 +# Default-stop: 0 1 2 6 +# Short-Description: xCATpost +# Description: xCAT diskless post boot script +### END INIT INFO + +# Source function library. +. /etc/rc.d/init.d/functions + +case $1 in +restart) + $0 stop + $0 start + ;; +status) + echo -n "xcatpostinit runs only at boot, runs additional post scripts" + ;; +stop) + echo -n "nothing to stop " + ;; +start) + # run /opt/xcat/xcatdsklspost + if [ -r /opt/xcat/xcatdsklspost ]; then + /opt/xcat/xcatdsklspost + fi + ;; +esac