AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20090115174307.7dee8900@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:exch1.onstor.net
NSV:
SSH:
R:<bfisher@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
X-Sylpheed-End-Special-Headers: 1
Date: Thu, 15 Jan 2009 17:44:02 -0800
From: Andrew Sharp <andy.sharp@onstor.com>
To: Bill Fisher <bfisher@onstor.com>
Subject: hacked load-onstor-embedded
Message-ID: <20090115174402.24712733@ripper.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=MP_JSmWtqhAY2KC4ylY59QcVMS

--MP_JSmWtqhAY2KC4ylY59QcVMS
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

The attached load-onstor-embedded should work.  Just replace the
previous one I sent you with this one on your CF.

You will have to edit it and replace 'whatever' with the actual path
to your tuxrx kernel image in your home directory.

Should be cool.  Let me know if it has problems.

Cheers,

a

--MP_JSmWtqhAY2KC4ylY59QcVMS
Content-Type: text/plain; name=onstor-load-embedded
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=onstor-load-embedded

#! /bin/sh
### BEGIN INIT INFO
# Provides:          onstor-load-embedded
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:      0
# Short-Description: ONStor load embedded images
# Description:       Performs boot-time loading of embedded runtime images for TXRX and FP processor nodes.
### END INIT INFO

# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions


LOAD_PROG=/onstor/bin/load_vmlinux
# these are symlinks to the above program
LOAD_TXRX=/onstor/bin/load_nfs_tuxrx
LOAD_FP=/onstor/bin/load_fp

$TUXRX_IMAGE_FILE='~bfisher/whatever'

if [ ! -x $LOAD_PROG ] ; then
	log_daemon_msg "Load program $LOAD_PROG is missing."
	log_end_msg 1
	exit 0
fi

case $1 in
	start)
		wget --progress=bar -N -O /boot/vmlinux.tuxrx.local \
			http://ripper/$TUXRX_IMAGE_FILE || {

			log_failure_msg "Failed to load $TUXRX_IMAGE_FILE"
			exit 1
		}

		$LOAD_TXRX & $LOAD_FP &
		;;
	stop)
		: do nothing
		;;
esac

--MP_JSmWtqhAY2KC4ylY59QcVMS--
