Monday, July 15, 2013

does a sun box have all the requisite stuff for a flar create?

maybe.

why not just check it out.  if not, then grap the binaries from elsewhere and plop them in the right place.  it works, really.
for those pesky sol 5.7 systems, issue flarcreate -H cause computehash doesn't work with them.

afterward, cp the binaries to the locations.  if in doubt run ldd -f ./binary

nb:
fdo requires a directory (if you have to mkdir -p you have bigger problems):
mkdir /usr/lib/flash/

freely lifted from flarcreate.

#!/bin/ksh 

# list of required utilities.  If you add any to this
# list, be sure to also add it to the $UTIL_LIST variable below!
AWK="/usr/bin/awk"
RM="/usr/bin/rm"
CPIO="/usr/bin/cpio"
COMPRESS="/usr/bin/compress"
UNCOMPRESS="/usr/bin/uncompress"
CAT="/usr/bin/cat"
ZCAT="/usr/bin/zcat"
FIND="/usr/bin/find"
TOUCH="/usr/bin/touch"
MT="/usr/bin/mt"
DD="/usr/bin/dd"
MKDIR="/usr/bin/mkdir"
FLAR="/usr/sbin/flar"
FLARCREATE="/usr/sbin/flarcreate"
COMPUTEHASH="/usr/sbin/computehash"
BPGETFILE="/usr/sbin/bpgetfile"
FDOLIB="/usr/lib/flash/fdo"

UTIL_LIST="$AWK $RM $CPIO $COMPRESS $UNCOMPRESS $CAT $ZCAT $FIND $TOUCH $MT $DD $MKDIR $FLAR $FLARCREATE $COM
PUTEHASH $BPGETFILE $FDOLIB"

##############################################################
# find binaries required to flarcreate.
##############################################################
{
    for i in $UTIL_LIST ; do
        if [ ! -x $i ] ; then
                "$(gettext "Required utility $i is not available.")" $i
        fi
    done
}

exit 0 

Post a Comment