VirtualBox

Ignore:
Timestamp:
Apr 11, 2008 11:24:36 AM (17 years ago)
Author:
vboxsync
Message:

Solaris installer: host and guest side fixes for Solaris 10, Indiana DP2.

Location:
trunk/src/VBox/Additions/solaris/Installer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/Installer/postinstall.sh

    r7886 r7906  
    8484
    8585    # Some distros like Indiana have no xorg.conf, deal with this
    86     if ! (test -f '/etc/X11/xorg.conf' -o -f '/etc/X11/.xorg.conf'); then
     86    if test ! -f '/etc/X11/xorg.conf' && test ! -f '/etc/X11/.xorg.conf'; then
    8787        mv -f $vboxadditions_path/solaris_xorg.conf /etc/X11/.xorg.conf
    8888    fi
  • trunk/src/VBox/Additions/solaris/Installer/vboxguest.sh

    r7404 r7906  
    1 #!/bin/bash
     1#!/bin/sh
    22# innotek VirtualBox
    33# VirtualBox Guest Additions kernel module control script for Solaris.
     
    6262check_root()
    6363{
    64     if test `id -u` -ne 0; then
     64    if test `/usr/xpg4/bin/id -u` -ne 0; then
    6565        abort "This program must be run with administrator privileges.  Aborting"
    6666    fi
    6767}
    6868
    69 start()
     69start_module()
    7070{
    7171    if module_loaded; then
     
    7373    else
    7474        /usr/sbin/add_drv -i'pci80ee,cafe' -m'* 0666 root sys' vboxguest
    75         if ! module_loaded; then
     75        if test ! module_loaded; then
    7676            abort "Failed to load vboxguest."
    7777        elif test -c "/devices/pci@0,0/pci80ee,cafe@4:vboxguest"; then
     
    8484}
    8585
    86 stop()
     86stop_module()
    8787{
    8888    if module_loaded; then
     
    9494}
    9595
    96 restart()
     96restart_module()
    9797{
    98     stop
     98    stop_module
    9999    sync
    100     start
     100    start_module
    101101    return 0
    102102}
    103103
    104 status()
     104status_module()
    105105{
    106106    if module_loaded; then
     
    121121case "$1" in
    122122start)
    123     start
     123    start_module
    124124    ;;
    125125stop)
    126     stop
     126    stop_module
    127127    ;;
    128128restart)
    129     restart
     129    restart_module
    130130    ;;
    131131status)
    132     status
     132    status_module
    133133    ;;
    134134*)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette