Changeset 42458 in vbox for trunk/src/VBox/Additions/solaris/Installer
- Timestamp:
- Jul 30, 2012 4:18:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/Installer/vboxguest.sh
r40193 r42458 32 32 MODNAME="vboxguest" 33 33 VFSMODNAME="vboxfs" 34 VMSMODNAME="vboxms" 34 35 MODDIR32="/usr/kernel/drv" 35 36 MODDIR64="/usr/kernel/drv/amd64" … … 85 86 { 86 87 module_loaded $VFSMODNAME 88 return $? 89 } 90 91 vboxms_loaded() 92 { 93 module_loaded $VMSMODNAME 87 94 return $? 88 95 } … … 149 156 } 150 157 158 start_vboxms() 159 { 160 /usr/sbin/add_drv -m'* 0666 root sys' $VMSMODNAME 161 if test ! vboxms_loaded; then 162 abort "Failed to load VirtualBox pointer integration module." 163 elif test -c "/devices/pseudo/$VMSMODNAME@0:$VMSMODNAME"; then 164 info "VirtualBox pointer integration module loaded." 165 else 166 abort "Aborting due to attach failure." 167 fi 168 } 169 170 stop_vboxms() 171 { 172 if vboxms_loaded; then 173 /usr/sbin/rem_drv $VMSMODNAME || abort "Failed to unload VirtualBox pointer integration module." 174 info "VirtualBox pointer integration module unloaded." 175 elif test -z "$SILENTUNLOAD"; then 176 info "VirtualBox pointer integration module not loaded." 177 fi 178 } 179 151 180 status_module() 152 181 { … … 160 189 stop_all() 161 190 { 191 stop_vboxms 162 192 stop_vboxfs 163 193 stop_module … … 170 200 start_module 171 201 start_vboxfs 202 start_vboxms 172 203 return 0 173 204 } … … 189 220 start) 190 221 start_module 222 start_vboxms 191 223 ;; 192 224 stop) 225 stop_vboxms 193 226 stop_module 194 227 ;; … … 201 234 vfsstop) 202 235 stop_vboxfs 236 ;; 237 vmsstart) 238 start_vboxms 239 ;; 240 vmsstop) 241 stop_vboxms 203 242 ;; 204 243 *)
Note:
See TracChangeset
for help on using the changeset viewer.