Changeset 12650 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Sep 22, 2008 3:05:24 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 36939
- Location:
- trunk/src/VBox/Installer/solaris
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/Makefile.kmk
r12575 r12650 55 55 OTHER_CLEAN = $(addprefix $(SOLARIS_INST_DIR)/,\ 56 56 vbox.pkginfo vbox.copyright vbox.space vbox.pkgresponse \ 57 makepackage.sh prototype postinstall.sh preremove.sh etc/devlink.tab)57 makepackage.sh prototype postinstall.sh preremove.sh) 58 58 59 59 # … … 228 228 $(VBOX_PATH_SOL_INST_SRC)/vbox.space \ 229 229 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \ 230 $(VBOX_PATH_SOL_INST_SRC)/vboxdevlink.sed \231 230 $(VBOX_PATH_SOL_INST_SRC)/VBox.sh \ 232 231 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop \ … … 392 391 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_INST_DIR)/makepackage.sh 393 392 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_INST_DIR)/autoresponse 394 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vboxdevlink.sed $(SOLARIS_INST_DIR)/etc/devlink.tab395 393 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_INST_DIR)/vbox.space 396 394 $(QUIET)$(SED) \ -
trunk/src/VBox/Installer/solaris/makepackage.sh
r11923 r12650 87 87 echo 'i copyright=./vbox.copyright' >> prototype 88 88 fi 89 echo 'e sed /etc/devlink.tab ? ? ?' >> prototype90 89 find . -print | $VBOX_GGREP -v -E 'prototype|makepackage.sh|vbox.pkginfo|postinstall.sh|preremove.sh|ReadMe.txt|vbox.space|vbox.copyright|VirtualBoxKern' | pkgproto >> prototype 91 90 92 # don't grok for the sedclass files91 # don't grok for the class files 93 92 filelist_fixup prototype '$2 == "none"' '$5 = "root"; $6 = "bin"' 94 93 filelist_fixup prototype '$2 == "none"' '$3 = "opt/VirtualBox/"$3"="$3' -
trunk/src/VBox/Installer/solaris/postinstall.sh
r11975 r12650 30 30 currentzone=`zonename` 31 31 if test "$currentzone" = "global"; then 32 echo "Configuring VirtualBox kernel module..."32 echo "Configuring VirtualBox Host kernel module..." 33 33 /opt/VirtualBox/vboxdrv.sh stopall silentunload 34 34 /opt/VirtualBox/vboxdrv.sh start 35 35 36 echo "Configuring VirtualBox NetFilter kernel module..."37 36 if test -f /platform/i86pc/kernel/drv/vboxflt.conf; then 37 echo "Configuring VirtualBox NetFilter kernel module..." 38 38 /opt/VirtualBox/vboxdrv.sh fltstart 39 39 fi … … 55 55 fi 56 56 fi 57 if test -f /var/svc/manifest/application/virtualbox/webservice.xml; then58 /usr/sbin/svccfg import /var/svc/manifest/application/virtualbox/webservice.xml59 /usr/sbin/svcadm disable -s svc:/application/virtualbox/webservice:default60 fi61 /usr/sbin/removef $PKGINST /opt/VirtualBox/etc/devlink.tab 1>/dev/null62 /usr/sbin/removef $PKGINST /opt/VirtualBox/etc 1>/dev/null63 rm -rf /opt/VirtualBox/etc64 /usr/sbin/removef -f $PKGINST65 57 66 /usr/sbin/installf -f $PKGINST 58 if test "$currentzone" = "global"; then 59 if test -f /var/svc/manifest/application/virtualbox/webservice.xml; then 60 /usr/sbin/svccfg import /var/svc/manifest/application/virtualbox/webservice.xml 61 /usr/sbin/svcadm disable -s svc:/application/virtualbox/webservice:default 62 fi 67 63 68 # We need to touch the desktop link in order to add it to the menu right away 69 if test "$currentzone" = "global"; then 64 # create /dev link for vboxdrv 65 /usr/sbin/installf -c none $PKGINST /dev/vboxdrv=../devices/pseudo/vboxdrv@0:vboxdrv s 66 67 # We need to touch the desktop link in order to add it to the menu right away 70 68 if test -f "/usr/share/applications/virtualbox.desktop"; then 71 69 touch /usr/share/applications/virtualbox.desktop 72 70 fi 71 fi 73 72 74 # create /dev link for vboxdrv (only possible from global zone) 75 /usr/sbin/devfsadm -i vboxdrv 76 fi 73 /usr/sbin/installf -f $PKGINST 77 74 78 75 echo "Done." -
trunk/src/VBox/Installer/solaris/preremove.sh
r11975 r12650 21 21 echo "This script will unload the VirtualBox kernel module..." 22 22 23 # vboxdrv.sh would've been installed, we just need to call it.24 /opt/VirtualBox/vboxdrv.sh stopall25 26 # remove /dev/vboxdrv27 23 currentzone=`zonename` 28 24 if test "$currentzone" = "global"; then 29 rm -f /dev/vboxdrv 25 # stop and unregister webservice daemon 26 /usr/sbin/svcadm disable -s svc:/application/virtualbox/webservice:default 27 /usr/sbin/svccfg delete svc:/application/virtualbox/webservice:default 28 29 # vboxdrv.sh would've been installed, we just need to call it. 30 /opt/VirtualBox/vboxdrv.sh stopall 30 31 fi 31 32 # stop and unregister webservice daemon33 /usr/sbin/svcadm disable -s svc:/application/virtualbox/webservice:default34 /usr/sbin/svccfg delete svc:/application/virtualbox/webservice:default35 36 32 37 33 echo "Done." -
trunk/src/VBox/Installer/solaris/vboxdrv.sh
r12452 r12650 61 61 fi 62 62 63 abort "## VirtualBox kernel module NOT installed."63 abort "## VirtualBox Host kernel module NOT installed." 64 64 } 65 65 … … 100 100 { 101 101 if module_loaded; then 102 info "VirtualBox kernel module already loaded."102 info "VirtualBox Host kernel module already loaded." 103 103 else 104 104 if test -n "_HARDENED_"; then … … 108 108 fi 109 109 if test ! module_loaded; then 110 abort "## Failed to load VirtualBox kernel module."110 abort "## Failed to load VirtualBox Host kernel module." 111 111 elif test -c "/devices/pseudo/$MODNAME@0:$MODNAME"; then 112 info "VirtualBox kernel module loaded."112 info "VirtualBox Host kernel module loaded." 113 113 else 114 114 abort "Aborting due to attach failure." … … 120 120 { 121 121 if module_loaded; then 122 /usr/sbin/rem_drv $MODNAME || abort "## Failed to unload VirtualBox kernel module."123 info "VirtualBox kernel module unloaded."122 /usr/sbin/rem_drv $MODNAME || abort "## Failed to unload VirtualBox Host kernel module." 123 info "VirtualBox Host kernel module unloaded." 124 124 elif test -z "$SILENTUNLOAD"; then 125 info "VirtualBox kernel module not loaded."125 info "VirtualBox Host kernel module not loaded." 126 126 fi 127 127
Note:
See TracChangeset
for help on using the changeset viewer.