VirtualBox

Changeset 7906 in vbox for trunk/src/VBox/Installer/solaris


Ignore:
Timestamp:
Apr 11, 2008 11:24:36 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29534
Message:

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

File:
1 edited

Legend:

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

    r7692 r7906  
    1 #!/bin/bash
     1#!/bin/sh
    22# innotek VirtualBox
    33# VirtualBox kernel module control script for Solaris.
     
    6666check_root()
    6767{
    68     if test `id -u` -ne 0; then
     68    if test `/usr/xpg4/bin/id -u` -ne 0; then
    6969        abort "This program must be run with administrator privileges.  Aborting"
    7070    fi
    7171}
    7272
    73 start()
     73start_module()
    7474{
    7575    if module_loaded; then
     
    7777    else
    7878        /usr/sbin/add_drv -m'* 0666 root sys' vboxdrv
    79         if ! module_loaded; then
     79        if test ! module_loaded; then
    8080            abort "Failed to load vboxdrv."
    8181        elif test -c "/devices/pseudo/vboxdrv@0:vboxdrv"; then
     
    8888}
    8989
    90 stop()
     90stop_module()
    9191{
    9292    if module_loaded; then
     
    9898}
    9999
    100 restart()
     100restart_module()
    101101{
    102     stop
     102    stop_module
    103103    sync
    104     start
     104    start_module
    105105    return 0
    106106}
    107107
    108 status()
     108status_module()
    109109{
    110110    if module_loaded; then
     
    125125case "$1" in
    126126start)
    127     start
     127    start_module
    128128    ;;
    129129stop)
    130     stop
     130    stop_module
    131131    ;;
    132132restart)
    133     restart
     133    restart_module
    134134    ;;
    135135status)
    136     status
     136    status_module
    137137    ;;
    138138*)
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