Operating System - HP-UX
1835171 Members
2449 Online
110077 Solutions
New Discussion

Re: swinstall command line

 
Jon Hansen_1
Advisor

swinstall command line

I am trying to do a command line install for graphics drivers (Pex libraries). Unfortunately the install requires a reboot. If I put it in a script I would like to have the rest of the functions finish after it gets completed. Is there any way to do a wait for the reboot?

Current run:
swinstall -x autoreboot=true -s ${DevSoftware} \*
4 REPLIES 4
Hai Nguyen_1
Honored Contributor

Re: swinstall command line

You can set up an "at" job or a one-time cronjob to install it.

Hai
Sajid_1
Honored Contributor

Re: swinstall command line

hello,

If you set the 'autoreboot=true' then after the installation the system will be rebooted automatically. In your case this can be a try:
a) set autoreboot=false
b) do the functions you want
c) add shutdown -r -y 0 at the end of the script.

I would make sure that it will be a proper downtime for the system!
learn unix ..
Jon Hansen_1
Advisor

Re: swinstall command line

Sorry, wrong patch. Actually these are kernel patches (PHSS_26262). I found a way I can force the reboot with the other functions at the correct time. I just needed to call functions before installing the patch. Still it would have been nice to find a way to add a boot wait time into non-interactive command line swinstall sessions.
Steve Faidley
Valued Contributor

Re: swinstall command line

just a by the way. You can not run command line swinstall with autoreboot=false. If the software/patch requires a reboot it will reboot on it's own. using autoreboot=false on the command line will cause swinstall to abort and not run.
If it ain't broke, let me have a look at it.