>>> On 10/9/2014 at 11:56 AM, Michael MacIsaac <[email protected]> wrote: 
> but how about this:
> 
>   which vmcp >/dev/null 2>&1
>   if [ $? != 0 ]; then
>     modprobe vmcp
>   fi

Something more like this:
#!/bin/sh
if [ ! -c /dev/vmcp ]; then
  modprobe vmcp
  if [ $? != 0 ]; then
    echo "The modprobe for vmcp failed. Exiting."
    exit 1
  fi
fi

vmcp q n


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to