#!/bin/sh # # @(#) Installer # # Copyright (c) 2010 by Dell, Inc. # # All rights reserved. This software may not be copied, disclosed, # transferred, or used except in accordance with a license granted # by Dell, Inc. This software embodies proprietary information # and trade secrets of Dell, Inc. interlock() { UUID0=`dd if=/dev/random count=1 bs=32 2>/dev/null |cat -v` # We need this because the string we get above may have a # newline in it, and this will turn that into a space. UUID=`echo $UUID0` if [ -e /tmp/mkbin.lock ]; then # don't call "uabort" because that will wipe the kit # files, which are still needed by the other instance. echo "Another copy of this process is already running" exit 88 fi LOCKFILE="/tmp/mkbin.lock" echo $UUID > /tmp/mkbin.lock sleep 1 UUID2=`cat /tmp/mkbin.lock` if [ "${UUID}" != "${UUID2}" ]; then # don't call "uabort" because that will wipe the kit # files, which are still needed by the other instance. echo "Another copy of this process is already running" exit 88 fi } cleanup() { rm -f /tmp/mkbin.lock } EXSTAT=2 trap cleanup 2 3 9 interlock LINES=9 ACTSUM=3936388979 cursum=`tail -n $LINES \$0 | cksum | awk '{print \$1}'` EXSTAT=2 if [ $# -gt 0 ] ; then if [ "$1" = "-QA" ] ; then NODELETE="$1" shift 1 fi fi if [ "$cursum" = "$ACTSUM" ] ; then tail -n $LINES $0 | tar xzf - sh ./install.sh $@ EXSTAT=$? else echo "Incorrect file checksum. Please transfer the kit to the array" echo "in binary mode and try again ($cursum, $ACTSUM)" EXSTAT=6 fi if [ -n "${LOCKFILE}" ]; then rm -f ${LOCKFILE} fi if [ -z "${NODELETE}" ] ; then if [ ${EXSTAT} -eq 1 ] ; then rm -f $0 fi fi exit ${EXSTAT} JKinstall.tarks6ҟ+H%J_g)THH:Hd5q;m;%bʅU>ݠloO~6OscwW}zikh=k66 o5]PnMj<l~S:64Y؄6г m (cXa18㉀UfQ @ZUt躠8DR v?q8p6S3 3L|;`;rǯHC&#r`P0-I#&`lRN` D7dC8-̐)FqImɆ-`aTb@d Bj-g/c9َbb 9(J3ׯ'2QN#<?; u.lTԬ|Fy7ěХ~(~s = ِ& 'ƶD6B~2΀XK%,M ơG;MpI`B\H2QigWrd3=KE&g whRŒ=jH~ )|itF#b5QIa^t>/BK]AΠHxp){ j"-$2IyK|Ulzu{<>z֎#nҴƫm&Ƨ\lxwzh~Nlˍ71PD>%Wʝq1ΘR4EF3Xad` +lm~--ڑ c"V@q})cc_{r#Q4K"+Ma3ik\&bRXpݔݰ)Au`7=Uaa* ~UUq Eudr&,tm_ΞI࢚c'hh<+Th`e W8t| a0FsQq/}W9KXLvT2o"6 9@ϟ!t ]%k{g:*,v~չw랟VH}z?noo)~ }[͍,6cӖy;%ʼn͈Sv%*&˻ԋ@HWZ¦SSuW/ .J$UD^i/ bQ^|*&ebX*\J5h*k2x:vhZ2%w`~o|O#{NZt7m<%: Q~=T|06U䑯, CiVex?Rd +=6Sf~_eaofC|P)Qho##P[| UkEPYao-3剤RiuD/ ڝE->d3PCءd^"/f{ꭃ,4J̙s|^oNN8J|ȍN~kRE`E8[2|E