1 #!/bin/sh |
1 #!/bin/sh |
2 # |
2 # |
3 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
3 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 # |
5 # |
6 # This code is free software; you can redistribute it and/or modify it |
6 # This code is free software; you can redistribute it and/or modify it |
7 # under the terms of the GNU General Public License version 2 only, as |
7 # under the terms of the GNU General Public License version 2 only, as |
8 # published by the Free Software Foundation. |
8 # published by the Free Software Foundation. |
128 then |
128 then |
129 VM_BITS="64" |
129 VM_BITS="64" |
130 fi |
130 fi |
131 |
131 |
132 VM_OS="unknown" |
132 VM_OS="unknown" |
133 grep "solaris" vm_version.out > ${NULL} |
133 grep "aix" vm_version.out > ${NULL} |
134 if [ $? = 0 ] |
134 if [ $? = 0 ] |
135 then |
135 then |
136 VM_OS="solaris" |
136 VM_OS="aix" |
|
137 fi |
|
138 grep "bsd" vm_version.out > ${NULL} |
|
139 if [ $? = 0 ] |
|
140 then |
|
141 VM_OS="bsd" |
137 fi |
142 fi |
138 grep "linux" vm_version.out > ${NULL} |
143 grep "linux" vm_version.out > ${NULL} |
139 if [ $? = 0 ] |
144 if [ $? = 0 ] |
140 then |
145 then |
141 VM_OS="linux" |
146 VM_OS="linux" |
142 fi |
147 fi |
|
148 grep "solaris" vm_version.out > ${NULL} |
|
149 if [ $? = 0 ] |
|
150 then |
|
151 VM_OS="solaris" |
|
152 fi |
143 grep "windows" vm_version.out > ${NULL} |
153 grep "windows" vm_version.out > ${NULL} |
144 if [ $? = 0 ] |
154 if [ $? = 0 ] |
145 then |
155 then |
146 VM_OS="windows" |
156 VM_OS="windows" |
147 fi |
|
148 grep "bsd" vm_version.out > ${NULL} |
|
149 if [ $? = 0 ] |
|
150 then |
|
151 VM_OS="bsd" |
|
152 fi |
157 fi |
153 |
158 |
154 VM_CPU="unknown" |
159 VM_CPU="unknown" |
155 grep "sparc" vm_version.out > ${NULL} |
160 grep "sparc" vm_version.out > ${NULL} |
156 if [ $? = 0 ] |
161 if [ $? = 0 ] |