Changeset 39358 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Nov 17, 2011 10:25:36 PM (13 years ago)
- Location:
- trunk/src/VBox/Additions/linux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/Makefile.kmk
r39325 r39358 58 58 VBOX_PATH_LNX_INST_SRC := $(PATH_ROOT)/src/VBox/Installer/linux/ 59 59 VBOX_REL_LNX_INST_SRC := $(subst $(PATH_ROOT)/src/VBox, ../..,$(VBOX_PATH_LNX_INST_SRC)) 60 VBOX_PATH_LNX_HOST_DRV := $(PATH_ROOT)/src/VBox/HostDrivers/linux/ 61 VBOX_REL_LNX_HOST_DRV := $(subst $(PATH_ROOT)/src/VBox, ../..,$(VBOX_PATH_LNX_HOST_DRV)) 60 62 61 63 # Unset this to speed up things during makefile hacking. … … 339 341 $(VBOX_REL_LNX_ADD_INST)deffiles 340 342 LnxAdd-scripts_EXEC_SOURCES = \ 343 $(VBOX_REL_LNX_HOST_DRV)do_dkms \ 341 344 $(VBOX_REL_LNX_INST_SRC)routines.sh \ 342 345 $(VBOX_REL_LNX_ADD_INST)vboxadd.sh=>vboxadd \ -
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r39348 r39358 29 29 ### END INIT INFO 30 30 31 . /var/lib/VBoxGuestAdditions/config32 export BUILD_TYPE33 export USERNAME34 35 31 PATH=$PATH:/bin:/sbin:/usr/sbin 36 32 PACKAGE=VBoxGuestAdditions 37 OLDMODULES="vboxguest vboxadd vboxsf vboxvfs vboxvideo"38 MODULE_SRC="$INSTALL_DIR/src/vboxguest-$INSTALL_VER"39 BUILDINTMP="$MODULE_SRC/build_in_tmp"40 DODKMS="$MODULE_SRC/do_dkms"41 33 LOG="/var/log/vboxadd-install.log" 42 34 MODPROBE=/sbin/modprobe 35 OLDMODULES="vboxguest vboxadd vboxsf vboxvfs vboxvideo" 43 36 44 37 if $MODPROBE -c | grep -q '^allow_unsupported_modules *0'; then … … 168 161 fi 169 162 163 show_error() 164 { 165 if [ "$system" = "gentoo" ]; then 166 eerror $1 167 fi 168 fail_msg 169 echo "($1)" 170 } 171 172 fail() 173 { 174 show_error "$1" 175 exit 1 176 } 177 170 178 dev=/dev/vboxguest 171 179 userdev=/dev/vboxuser 180 config=/var/lib/VBoxGuestAdditions/config 172 181 owner=vboxadd 173 182 group=1 … … 199 208 printf "The missing package can be probably installed with\napt-get install linux-headers-$KERN_VER\n" 200 209 fi 201 }202 203 show_error()204 {205 if [ "$system" = "gentoo" ]; then206 eerror $1207 fi208 fail_msg209 echo "($1)"210 }211 212 fail()213 {214 show_error "$1"215 exit 1216 210 } 217 211 … … 355 349 { 356 350 begin "Removing existing VirtualBox DKMS kernel modules" 357 $DODKMS uninstall > $LOG351 $DODKMS uninstall $OLDMODULES > $LOG 358 352 succ_msg 359 353 begin "Removing existing VirtualBox non-DKMS kernel modules" … … 372 366 373 367 # Short cut out if a dkms build succeeds 374 if $DODKMS install >> $LOG 2>&1; then368 if $DODKMS install vboxguest $INSTALL_VER >> $LOG 2>&1; then 375 369 succ_msg 376 370 return 0 … … 483 477 setup() 484 478 { 479 if test -r $config; then 480 . $config 481 else 482 fail "Configuration file $config not found" 483 fi 484 test -n "$INSTALL_DIR" -a -n "$INSTALL_VER" || 485 fail "Configuration file $config not complete" 486 export BUILD_TYPE 487 export USERNAME 488 489 MODULE_SRC="$INSTALL_DIR/src/vboxguest-$INSTALL_VER" 490 BUILDINTMP="$MODULE_SRC/build_in_tmp" 491 DODKMS="$MODULE_SRC/do_dkms" 492 485 493 setup_modules 486 494 mod_succ="$?" … … 498 506 cleanup() 499 507 { 508 if test -r $config; then 509 . $config 510 test -n "$INSTALL_DIR" -a -n "$INSTALL_VER" || 511 fail "Configuration file $config not complete" 512 DODKMS="$INSTALL_DIR/src/vboxguest-$INSTALL_VER/do_dkms" 513 elif test -x ./do_dkms; then # Executing as part of the installer... 514 DODKMS=./do_dkms 515 else 516 fail "Configuration file $config not found" 517 fi 518 500 519 # Delete old versions of VBox modules. 501 520 cleanup_modules
Note:
See TracChangeset
for help on using the changeset viewer.