Networker

[Networker] Error running postinstall script for LGTOdrvr package on sol7

2004-02-04 04:13:04
Subject: [Networker] Error running postinstall script for LGTOdrvr package on sol7
From: Oscar Olsson <spam1 AT QBRANCH DOT SE>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 4 Feb 2004 10:12:50 +0100
When installing the LGTOnode package, it fails when running the
postinstall script on solaris 7.

The error is:

## Executing preinstall script.
## Installing part 1 of 1.
/usr/kernel/drv/lus
/usr/kernel/drv/lus32
[ verifying class <none> ]
## Executing postinstall script.
/var/sadm/pkg/LGTOdrvr.8/install/postinstall: test: unknown operator
32-bit
pkgadd: ERROR: postinstall script did not complete successfully

Installation of <LGTOdrvr.8> failed.

I guess this is an error in the postinstall script?

According to the script, this is what it does:

# Solaris 7 running on a sparc chip
if [ ${MYOS} = solaris7 -a ${MYARCH} = sparc ]; then
        mv -f $PKG_INSTALL_ROOT/usr/kernel/drv/lus32
$PKG_INSTALL_ROOT/usr/kernel/drv/lus
        removef $PKGINST /usr/kernel/drv/lus
        removef $PKGINST /usr/kernel/drv/lus32
        installf $PKGINST /usr/kernel/drv/lus f

        INQUIRE=`grep "inquire f" /var/sadm/install/contents | awk '{print
$1}'`
        BINMODE=`file $INQUIRE | awk '{print $3}'`
        if [ ${BINMODE} = "32-bit" ]; then
                mv -f $PKG_INSTALL_ROOT/usr/lib/nsr/libscsi27.so.1
$PKG_INSTALL_ROOT/usr/lib/nsr/libscsi.so.1
                removef $PKGINST /usr/lib/nsr/libscsi.so.1
                removef $PKGINST /usr/lib/nsr/libscsi27.so.1
                installf $PKGINST /usr/lib/nsr/libscsi.so.1 f
        else
                rm -f $PKG_INSTALL_ROOT/usr/lib/nsr/libscsi27.so.1
                removef $PKGINST /usr/lib/nsr/libscsi27.so.1
        fi

        removef -f $PKGINST
        installf -f $PKGINST
fi

But the output from the above INQUIRE command returns this:

[root@britt:/root/install/LGTOdrvr/install] grep "inquire f"
/var/sadm/install/contents | awk '{print $1}'
/etc/LGTOuscsi/inquire
/usr/sbin/inquire

Where is "32-bit" comming from? Am I doing something wrong, or is the
script flawed?

//Oscar

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>