From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "McCracken, Denise" Newsgroups: gmane.os.tru64.managers Subject: 5.1a Preinstall script nightmares Date: Thu, 21 Nov 2002 14:46:13 -0700 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <21C552CF85C64D4A891D47E7A33274A801954CBA@EXBRDY.sunquest.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1037914875 9492 80.91.224.249 (21 Nov 2002 21:41:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2002 21:41:15 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18Ez4Q-0002SL-00 for ; Thu, 21 Nov 2002 22:41:10 +0100 Original-Received: (qmail 6557 invoked by uid 5); 21 Nov 2002 21:42:57 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 6548 invoked by uid 49493); 21 Nov 2002 21:42:57 -0000 Original-Received: from Denise.McCracken@misyshealthcare.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-1.2/5.0):. Processed in 0.426898 secs); 21 Nov 2002 21:42:57 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 21 Nov 2002 21:42:56 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5Y009RR4BJU9@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 21 Nov 2002 16:42:56 -0500 (EST) Original-Received: from eximsbrdy.sunquest.com (eximsbrdy.hosp.misyshealthcare.com [149.138.1.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5Y001B14B8P2@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 21 Nov 2002 16:42:55 -0500 (EST) Original-Received: by eximsbrdy.sunquest.com with Internet Mail Service (5.5.2656.59) id ; Thu, 21 Nov 2002 14:49:08 -0700 Content-return: allowed Original-To: tru64-unix-managers@ornl.gov X-Mailer: Internet Mail Service (5.5.2656.59) Xref: main.gmane.org gmane.os.tru64.managers:2534 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2534 I'm trying to create a preinstall script for a 5.1a installation, and I'm running into a few problems. The script is supposed to go out to a tape drive and get the install.cdf file. It works perfectly from the 5.1a single-user mode prompt, and doing a 4.0f install, but trying to use it for a 5.1a install, it doesn't work. First of all, I've had to use /bin/ksh. If I try to use /sbin/sh, like the install docs say, I get an error that it can't execute. When I run it from 5.1a install, it can't echo anything to the screen. The example file in the install docs shows using the echo command, so this should work. When I give it the input it is looking for anyway, which is tz5, it goes on and creates the device files (they are 4.0f device file types, but they work from the 5.1a command prompt), and then the tar command comes back with "no input". I can then break out of the installation, run this script by hand and do a restart to finish the install, but I need it to run without any user effort. The script follows. Any ideas would be appreciated. #!/bin/ksh # # This script brings in the install.cdf file for tru64 5.1a upgrade # from a tape drive. It is appended to by the setup program. # # It should never be run from the command line # echo "" read JUNK?"Insert the upgrade directory saveout tape. Press ENTER when ready." echo "" read tapedev?"What is the name of the raw tape device? >" cd /dev ./MAKEDEV $tapedev cd /var/tmp tar xvsf /dev/nrmt0h /install.cdf mt -f /dev/nrmt0h rewind if [ -f /var/tmp/install.cdf ] then echo "The install configuration has been restored from tape." else echo "Fatal error! Unable to restore the configuration!." read JUNK?"Press enter to quit." fi Denise McCracken MiSys Healthcare Systems Denise.McCracken@misyshealthcare.com (520) 570-2521