Changeset 59001 in vbox
- Timestamp:
- Dec 4, 2015 5:22:28 PM (9 years ago)
- Location:
- trunk/src/VBox/Additions/solaris/Installer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/Installer/postinstall.sh
r56949 r59001 335 335 groupadd vboxsf >/dev/null 2>&1 336 336 337 # install openGL extensions for X.Org338 if test ! -z "$xorgbin"; then339 # 32-bit crogl opengl library replacement340 if test -f "/usr/lib/VBoxOGL.so"; then341 cp -f /usr/X11/lib/mesa/libGL.so.1 /usr/X11/lib/mesa/libGL_original_.so.1342 ln -sf /usr/lib/VBoxOGL.so /usr/X11/lib/mesa/libGL.so.1343 fi344 345 # 64-bit crogl opengl library replacement346 if test -f "/usr/lib/amd64/VBoxOGL.so"; then347 cp -f /usr/X11/lib/mesa/amd64/libGL.so.1 /usr/X11/lib/mesa/amd64/libGL_original_.so.1348 ln -sf /usr/lib/amd64/VBoxOGL.so /usr/X11/lib/mesa/amd64/libGL.so.1349 fi350 fi351 352 337 # Move the pointer integration module to kernel/drv & remove the unused module name from pkg and file from disk 353 338 -
trunk/src/VBox/Additions/solaris/Installer/preremove.sh
r47318 r59001 65 65 /opt/VirtualBoxAdditions/x11restore.pl 66 66 67 # Restore crogl symlink mess68 # 32-bit crogl opengl library replacement69 if test -f "/usr/lib/VBoxOGL.so" && test -f "/usr/X11/lib/mesa/libGL_original_.so.1"; then70 mv -f /usr/X11/lib/mesa/libGL_original_.so.1 /usr/X11/lib/mesa/libGL.so.171 fi72 73 # 64-bit crogl opengl library replacement74 if test -f "/usr/lib/amd64/VBoxOGL.so" && test -f "/usr/X11/lib/mesa/amd64/libGL_original_.so.1"; then75 mv -f /usr/X11/lib/mesa/amd64/libGL_original_.so.1 /usr/X11/lib/mesa/amd64/libGL.so.176 fi77 78 67 79 68 echo "Done." -
trunk/src/VBox/Additions/solaris/Installer/vboxguest.sh
r44528 r59001 178 178 } 179 179 180 install_3d() 181 { 182 # 32-bit crogl opengl library replacement 183 if test -f /system/volatile/opengl/lib/libGL.so.1 && test -f /usr/lib/VBoxOGL.so && \ 184 /usr/bin/VBoxClient --check3d; then 185 rm -f /system/volatile/opengl/lib/libGL.so.1 186 ln -sf /usr/lib/VBoxOGL.so /system/volatile/opengl/lib/libGL.so.1 187 fi 188 189 # 64-bit crogl opengl library replacement 190 if test -f /system/volatile/opengl/lib/amd64/libGL.so.1 && test -f /usr/lib/amd64/VBoxOGL.so && \ 191 /usr/bin/VBoxClient --check3d; then 192 rm -f /system/volatile/opengl/lib/amd64/libGL.so.1 193 ln -sf /usr/lib/amd64/VBoxOGL.so /system/volatile/opengl/lib/amd64/libGL.so.1 194 fi 195 } 196 197 remove_3d() 198 { 199 # 32-bit crogl opengl library replacement 200 if test -f /system/volatile/opengl/lib/libGL.so.1 && test -f "/usr/lib/mesa/libGL.so.1"; then 201 rm -f /system/volatile/opengl/lib/libGL.so.1 202 ln -sf /usr/lib/mesa/libGL.so.1 /system/volatile/opengl/lib/libGL.so.1 203 elif test -f /system/volatile/opengl/lib/libGL.so.1 && test -f "/usr/X11/lib/mesa/libGL.so.1"; then 204 rm -f /system/volatile/opengl/lib/libGL.so.1 205 ln -sf /usr/X11/lib/mesa/libGL.so.1 /system/volatile/opengl/lib/libGL.so.1 206 fi 207 208 # 64-bit crogl opengl library replacement 209 if test -f /system/volatile/opengl/lib/amd64/libGL.so.1 && test -f "/usr/lib/mesa/amd64/libGL.so.1"; then 210 rm -f /system/volatile/opengl/lib/amd64/libGL.so.1 211 ln -sf /usr/lib/mesa/amd64/libGL.so.1 /system/volatile/opengl/lib/amd64/libGL.so.1 212 elif test -f /system/volatile/opengl/lib/amd64/libGL.so.1 && test -f "/usr/X11/lib/mesa/amd64/libGL.so.1"; then 213 rm -f /system/volatile/opengl/lib/amd64/libGL.so.1 214 ln -sf /usr/X11/lib/mesa/amd64/libGL.so.1 /system/volatile/opengl/lib/amd64/libGL.so.1 215 fi 216 } 217 180 218 status_module() 181 219 { … … 189 227 stop_all() 190 228 { 229 remove_3d 191 230 stop_vboxms 192 231 stop_vboxfs … … 201 240 start_vboxfs 202 241 start_vboxms 242 install_3d 203 243 return 0 204 244 } … … 221 261 start_module 222 262 start_vboxms 263 install_3d 223 264 ;; 224 265 stop) 266 remove_3d 225 267 stop_vboxms 226 268 stop_module … … 240 282 vmsstop) 241 283 stop_vboxms 284 ;; 285 3dstart) 286 install_3d 287 ;; 288 3dstop) 289 remove_3d 242 290 ;; 243 291 *)
Note:
See TracChangeset
for help on using the changeset viewer.