vbox的更動 11923 路徑 trunk/src/VBox/Installer/solaris
- 時間撮記:
- 2008-9-1 下午02:59:41 (16 年 以前)
- 位置:
- trunk/src/VBox/Installer/solaris
- 檔案:
-
- 修改 4 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Installer/solaris/Makefile.kmk
r11921 r11923 69 69 SOLARIS_STRIP_BINS = \ 70 70 vboxdrv \ 71 $(if $(VBOX_WITH_NETFLT),vboxflt) \ 71 72 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE) \ 72 73 VBoxDD.so \ … … 136 137 autoresponse \ 137 138 vboxdrv.conf \ 139 $(if $(VBOX_WITH_NETFLT),vboxflt.conf) \ 138 140 vboxdrv.sh \ 139 141 VBox.sh \ … … 229 231 $(if $(and $(not $(VBOX_OSE)),$(VBOX_WITH_QT4GUI)),$(PATH_BIN)/License-$(VBOX_LICENSE_VER).html) \ 230 232 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \ 233 $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf) \ 231 234 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh \ 232 235 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh \ … … 241 244 $(QUIET)$(if $(VBOX_WITH_VRDP_RDESKTOP),$(MKDIR) -p $(SOLARIS_INST_DIR)/rdesktop-vrdp-keymaps,) 242 245 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/vboxdrv $(SOLARIS_INST_DIR)/vboxdrv 246 $(QUIET)$(if $(VBOX_WITH_NETFLT),$(INSTALL) -m 0644 $(PATH_BIN)/vboxflt $(SOLARIS_INST_DIR)/vboxflt,) 243 247 $(QUIET)$(if $(VBOX_WITH_VBOXBFE),$(INSTALL) -m 0755 $(PATH_BIN)/VBoxBFE $(SOLARIS_INST_DIR)/VBoxBFE) 244 248 ifdef VBOX_WITH_HARDENING … … 291 295 $(call MSG_L1,Stripping binaries $(SOLARIS_INST_DIR)) 292 296 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/vboxdrv,) 297 ifdef VBOX_WITH_NETFLT 298 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/vboxflt,) 299 endif 293 300 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_VBOXBFE),strip $(SOLARIS_INST_DIR)/VBoxBFE,)) 294 301 ifdef VBOX_WITH_HARDENING … … 350 357 $(PATH_CURRENT)/vbox.pkginfo 351 358 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf $(SOLARIS_INST_DIR)/vboxdrv.conf 359 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf $(SOLARIS_INST_DIR)/vboxflt.conf 352 360 $(QUIET)$(if $(and $(not $(VBOX_OSE)),$(VBOX_WITH_DOCS)),$(INSTALL) -m 0644 $(PATH_BIN)/UserManual.pdf $(SOLARIS_INST_DIR)/UserManual.pdf,) 353 361 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_INST_DIR)/LICENSE) … … 429 437 $(QUIET)$(MKDIR) -p -- $(SOLARIS_DBG_DIR)/components 430 438 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/vboxdrv $(SOLARIS_DBG_DIR)/vboxdrv 439 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/vboxflt $(SOLARIS_DBG_DIR)/vboxflt 431 440 $(QUIET)$(if $(VBOX_WITH_VBOXBFE),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxBFE $(SOLARIS_DBG_DIR)/VBoxBFE) 432 441 ifdef VBOX_WITH_HARDENING -
trunk/src/VBox/Installer/solaris/makepackage.sh
r11725 r11923 101 101 fi 102 102 103 # install vboxflt to the right place. 104 if test "$3" = "x86"; then 105 filelist_fixup prototype '$3 == "opt/VirtualBox/vboxflt=vboxflt"' '$3 = "platform/i86pc/kernel/drv/vboxflt=vboxflt"; $6 = "sys"' 106 else 107 filelist_fixup prototype '$3 == "opt/VirtualBox/vboxflt=vboxflt"' '$3 = "platform/i86pc/kernel/drv/amd64/vboxflt=vboxflt"; $6 = "sys"' 108 fi 109 103 110 filelist_fixup prototype '$3 == "opt/VirtualBox/vboxdrv.conf=vboxdrv.conf"' '$3 = "platform/i86pc/kernel/drv/vboxdrv.conf=vboxdrv.conf"' 111 112 filelist_fixup prototype '$3 == "opt/VirtualBox/vboxflt.conf=vboxflt.conf"' '$3 = "platform/i86pc/kernel/drv/vboxflt.conf=vboxflt.conf"' 104 113 105 114 # hardening requires some executables to be marked setuid. -
trunk/src/VBox/Installer/solaris/postinstall.sh
r11725 r11923 32 32 echo "Configuring VirtualBox kernel module..." 33 33 /opt/VirtualBox/vboxdrv.sh restart silentunload 34 35 echo "Configuring VirtualBox NetFilter kernel module..." 36 if test -f /platform/i86pc/kernel/drv/vboxflt.conf; then 37 /opt/VirtualBox/vboxdrv.sh fltrestart silentunload 38 fi 34 39 fi 35 40 … … 69 74 /usr/sbin/devfsadm -i vboxdrv 70 75 fi 71 76 72 77 echo "Done." 73 78 -
trunk/src/VBox/Installer/solaris/vboxdrv.sh
r11725 r11923 20 20 SILENTUNLOAD="" 21 21 MODNAME="vboxdrv" 22 FLTMODNAME="vboxflt" 22 23 MODDIR32="/platform/i86pc/kernel/drv" 23 24 MODDIR64=$MODDIR32/amd64 … … 53 54 else 54 55 loadentry=`/usr/sbin/modinfo | grep $MODNAME` 56 fi 57 if test -z "$loadentry"; then 58 return 1 59 fi 60 return 0 61 } 62 63 vboxflt_module_loaded() 64 { 65 if test -f "/etc/name_to_major"; then 66 loadentry=`cat /etc/name_to_major | grep $FLTMODNAME` 67 else 68 loadentry=`/usr/sbin/modinfo | grep $FLTMODNAME` 55 69 fi 56 70 if test -z "$loadentry"; then … … 111 125 } 112 126 127 start_vboxflt() 128 { 129 if vboxflt_module_loaded; then 130 info "VirtualBox Net Filter kernel module already loaded." 131 else 132 if test -n "_HARDENED_"; then 133 /usr/sbin/add_drv -m'* 0600 root sys' $FLTMODNAME 134 else 135 /usr/sbin/add_drv -m'* 0666 root sys' $FLTMODNAME 136 fi 137 /usr/sbin/modload -p drv/$FLTMODNAME 138 if test ! vboxflt_module_loaded; then 139 abort "## Failed to load VirtualBox Net Filter kernel module." 140 elif 141 info "VirtualBox Net Filter kernel module loaded." 142 fi 143 fi 144 } 145 146 stop_vboxflt() 147 { 148 if vboxflt_module_loaded; then 149 /usr/sbin/rem_drv $FLTMODNAME || abort "## Failed to unload VirtualBox Net Filter module." 150 info "VirtualBox Net Filter kernel module unloaded." 151 elif test -z "$SILENTUNLOAD"; then 152 info "VirtualBox Net Filter kernel module not loaded." 153 fi 154 } 155 156 restart_vboxflt() 157 { 158 stop_vboxflt 159 sync 160 start_vboxflt 161 return 0 162 } 163 113 164 status_module() 114 165 { … … 140 191 status_module 141 192 ;; 193 fltrestart) 194 restart_vboxflt 195 ;; 142 196 *) 143 echo "Usage: $0 {start|stop|restart|status }"197 echo "Usage: $0 {start|stop|restart|status|fltrestart}" 144 198 exit 1 145 199 esac
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器