Changeset 8939 in vbox
- Timestamp:
- May 20, 2008 8:00:41 AM (17 years ago)
- Location:
- trunk/src/VBox/Additions/solaris/Installer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/Installer/postinstall.sh
r8697 r8939 18 18 # 19 19 20 echo "Sun xVM VirtualBox Guest Additions - postinstall script" 21 echo "This script will setup and load the VirtualBox Guest kernel module..." 20 echo "Configuring VirtualBox guest kernel module..." 22 21 23 22 sync … … 33 32 34 33 # create links 34 echo "Creating links..." 35 35 /usr/sbin/installf -c none $PKGINST /dev/vboxguest=../devices/pci@0,0/pci80ee,cafe@4:vboxguest s 36 36 /usr/sbin/installf -c none $PKGINST /usr/bin/VBoxClient=$vboxadditions_path/VBoxClient s -
trunk/src/VBox/Additions/solaris/Installer/vboxguest.sh
r8177 r8939 18 18 # 19 19 20 VBOXGUESTFILE=""21 20 SILENTUNLOAD="" 21 MODNAME="vboxguest" 22 MODDIR32="/platform/i86pc/kernel/drv" 23 MODDIR64=$MODDIR32/amd64 22 24 23 25 abort() … … 32 34 } 33 35 34 get_module_path()36 check_if_installed() 35 37 { 36 38 cputype=`isainfo -k` 37 module dir="/platform/i86pc/kernel/drv";39 modulepath="$MODDIR32/$MODNAME" 38 40 if test "$cputype" = "amd64"; then 39 module dir=$moduledir/amd6441 modulepath="$MODDIR64/$MODNAME" 40 42 fi 41 modulepath=$moduledir/vboxguest42 43 if test -f "$modulepath"; then 43 VBOXGUESTFILE="$modulepath"44 else45 VBOXGUESTFILE=""46 fi47 }48 49 check_if_installed()50 {51 if test "$VBOXGUESTFILE" -a -f "$VBOXGUESTFILE"; then52 44 return 0 53 45 fi 54 abort "VirtualBox kernel module ( vboxguest) notinstalled."46 abort "VirtualBox kernel module ($MODNAME) NOT installed." 55 47 } 56 48 57 49 module_loaded() 58 50 { 59 loadentry=`cat /etc/name_to_major | grep vboxguest` 51 if test -f "/etc/name_to_major"; then 52 loadentry=`cat /etc/name_to_major | grep $MODNAME` 53 else 54 loadentry=`/usr/sbin/modinfo | grep $MODNAME` 55 fi 60 56 if test -z "$loadentry"; then 61 57 return 1 … … 74 70 { 75 71 if module_loaded; then 76 info " vboxguest already loaded..."72 info "VirtualBox guest kernel module already loaded." 77 73 else 78 /usr/sbin/add_drv -i'pci80ee,cafe' -m'* 0666 root sys' vboxguest74 /usr/sbin/add_drv -i'pci80ee,cafe' -m'* 0666 root sys' $MODNAME 79 75 if test ! module_loaded; then 80 abort " Failed to load vboxguest."81 elif test -c "/devices/pci@0,0/pci80ee,cafe@4: vboxguest"; then82 info " Loaded vboxguest."76 abort "## Failed to load VirtualBox guest kernel module." 77 elif test -c "/devices/pci@0,0/pci80ee,cafe@4:$MODNAME"; then 78 info "VirtualBox guest kernel module loaded." 83 79 else 84 80 stop … … 91 87 { 92 88 if module_loaded; then 93 /usr/sbin/rem_drv vboxguest94 info " Unloaded vboxguest."89 /usr/sbin/rem_drv $MODNAME || abort "## Failed to unload VirtualBox guest kernel module." 90 info "VirtualBox guest kernel module unloaded." 95 91 elif test -z "$SILENTUNLOAD"; then 96 info " vboxguestnot loaded."92 info "VirtualBox guest kernel module not loaded." 97 93 fi 98 94 } … … 109 105 { 110 106 if module_loaded; then 111 info " vboxguest running."107 info "Running." 112 108 else 113 info " vboxguest stopped."109 info "Stopped." 114 110 fi 115 111 } 116 112 117 113 check_root 118 get_module_path119 114 check_if_installed 120 115 -
trunk/src/VBox/Additions/solaris/Installer/vboxservice.xml
r8177 r8939 5 5 # 6 6 Copyright (C) 2008 Sun Microsystems, Inc. 7 7 8 8 This file is part of VirtualBox Open Source Edition (OSE), as 9 9 available from http://www.virtualbox.org. This file is free software; … … 13 13 VirtualBox OSE distribution. VirtualBox OSE is distributed in the 14 14 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 15 15 16 16 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 17 17 Clara, CA 95054 USA or visit http://www.sun.com if you need … … 36 36 grouping='require_all' 37 37 restart_on='none' 38 type='service'> 38 type='service'> 39 39 <service_fmri value='svc:/milestone/devices:default' /> 40 40 </dependency> … … 47 47 type='service'> 48 48 <service_fmri value='svc:/system/filesystem/local:default' /> 49 </dependency> 49 </dependency> 50 50 51 51 <exec_method
Note:
See TracChangeset
for help on using the changeset viewer.