Changeset 17579 in vbox for trunk/src/VBox/Additions/solaris/Installer
- Timestamp:
- Mar 9, 2009 2:47:32 PM (16 years ago)
- Location:
- trunk/src/VBox/Additions/solaris/Installer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/Installer/makepackage.sh
r17241 r17579 81 81 filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/vboxguest.conf=vboxguest.conf"' '$3 = "usr/kernel/drv/vboxguest.conf=vboxguest.conf"' 82 82 83 # 32-bit vboxvfs84 #filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/vboxvfs=vboxvfs"' '$3 = "usr/kernel/fs/vboxvfs=vboxvfs"; $6="sys"'85 86 # 64-bit vboxvfs87 #filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/amd64/vboxvfs=amd64/vboxvfs"' '$3 = "usr/kernel/fs/amd64/vboxvfs=amd64/vboxvfs"; $6="sys"'88 89 83 # vboxvfsmount binary (always 32-bit on combined package) 90 84 filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/vboxvfsmount=vboxvfsmount"' '$3 = "etc/fs/vboxvfs/mount=vboxvfsmount"; $6="sys"' -
trunk/src/VBox/Additions/solaris/Installer/postinstall.sh
r17283 r17579 221 221 # Shared Folder kernel module (different for S10 & Nevada) 222 222 osverstr=`uname -r` 223 vbox vfsmod="vboxvfs"224 vbox vfsunused="vboxvfs_s10"223 vboxfsmod="vboxfs" 224 vboxfsunused="vboxfs_s10" 225 225 if test "$osverstr" = "5.10"; then 226 vbox vfsmod="vboxvfs_s10"227 vbox vfsunused="vboxvfs"226 vboxfsmod="vboxfs_s10" 227 vboxfsunused="vboxfs" 228 228 fi 229 229 230 230 # Move the appropriate module to kernel/fs & remove the unused module name from pkg and file from disk 231 231 # 64-bit shared folder module 232 if test -f "$vboxadditions64_path/$vbox vfsmod"; then233 /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/$solaris64dir/vbox vfs" f234 mv -f $vboxadditions64_path/$vbox vfsmod /usr/kernel/fs/$solaris64dir/vboxvfs235 /usr/sbin/removef $PKGINST $vboxadditions64_path/$vbox vfsmod 1>/dev/null236 /usr/sbin/removef $PKGINST $vboxadditions64_path/$vbox vfsunused 1>/dev/null237 rm -f $vboxadditions64_path/$vbox vfsunused232 if test -f "$vboxadditions64_path/$vboxfsmod"; then 233 /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/$solaris64dir/vboxfs" f 234 mv -f $vboxadditions64_path/$vboxfsmod /usr/kernel/fs/$solaris64dir/vboxfs 235 /usr/sbin/removef $PKGINST $vboxadditions64_path/$vboxfsmod 1>/dev/null 236 /usr/sbin/removef $PKGINST $vboxadditions64_path/$vboxfsunused 1>/dev/null 237 rm -f $vboxadditions64_path/$vboxfsunused 238 238 fi 239 239 240 240 # 32-bit shared folder module 241 if test -f "$vboxadditions_path/$vbox vfsmod"; then242 /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/vbox vfs" f243 mv -f $vboxadditions_path/$vbox vfsmod /usr/kernel/fs/vboxvfs244 /usr/sbin/removef $PKGINST $vboxadditions_path/$vbox vfsmod 1>/dev/null245 /usr/sbin/removef $PKGINST $vboxadditions_path/$vbox vfsunused 1>/dev/null246 rm -f $vboxadditions_path/$vbox vfsunused241 if test -f "$vboxadditions_path/$vboxfsmod"; then 242 /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/vboxfs" f 243 mv -f $vboxadditions_path/$vboxfsmod /usr/kernel/fs/vboxfs 244 /usr/sbin/removef $PKGINST $vboxadditions_path/$vboxfsmod 1>/dev/null 245 /usr/sbin/removef $PKGINST $vboxadditions_path/$vboxfsunused 1>/dev/null 246 rm -f $vboxadditions_path/$vboxfsunused 247 247 fi 248 248 -
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.