Changeset 17579 in vbox for trunk/src/VBox/Additions/solaris/Installer/vboxguest.sh
- Timestamp:
- Mar 9, 2009 2:47:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/Installer/vboxguest.sh
r17031 r17579 20 20 SILENTUNLOAD="" 21 21 MODNAME="vboxguest" 22 VFSMODNAME="vbox vfs"22 VFSMODNAME="vboxfs" 23 23 MODDIR32="/usr/kernel/drv" 24 24 MODDIR64=$MODDIR32/amd64 … … 69 69 } 70 70 71 vbox vfs_loaded()71 vboxfs_loaded() 72 72 { 73 73 module_loaded $VFSMODNAME … … 109 109 } 110 110 111 start_vbox vfs()112 { 113 if vbox vfs_loaded; then111 start_vboxfs() 112 { 113 if vboxfs_loaded; then 114 114 info "VirtualBox FileSystem kernel module already loaded." 115 115 else 116 116 /usr/sbin/modload -p fs/$VFSMODNAME || abort "Failed to load VirtualBox FileSystem kernel module." 117 if test ! vbox vfs_loaded; then117 if test ! vboxfs_loaded; then 118 118 abort "Failed to load VirtualBox FileSystem kernel module." 119 119 else … … 123 123 } 124 124 125 stop_vbox vfs()126 { 127 if vbox vfs_loaded; then128 vbox vfs_mod_id=`/usr/sbin/modinfo | grep $VFSMODNAME | cut -f 1 -d ' ' `129 if test -n "$vbox vfs_mod_id"; then130 /usr/sbin/modunload -i $vbox vfs_mod_id || abort "Failed to unload VirtualBox FileSystem module."125 stop_vboxfs() 126 { 127 if vboxfs_loaded; then 128 vboxfs_mod_id=`/usr/sbin/modinfo | grep $VFSMODNAME | cut -f 1 -d ' ' ` 129 if test -n "$vboxfs_mod_id"; then 130 /usr/sbin/modunload -i $vboxfs_mod_id || abort "Failed to unload VirtualBox FileSystem module." 131 131 info "VirtualBox FileSystem kernel module unloaded." 132 132 fi … … 163 163 stop_all() 164 164 { 165 stop_vbox vfs165 stop_vboxfs 166 166 stop_module 167 167 return 0 … … 195 195 ;; 196 196 vfsstart) 197 start_vbox vfs197 start_vboxfs 198 198 ;; 199 199 vfsstop) 200 stop_vbox vfs200 stop_vboxfs 201 201 ;; 202 202 *)
Note:
See TracChangeset
for help on using the changeset viewer.