VirtualBox

Ignore:
Timestamp:
Apr 20, 2009 2:18:53 PM (16 years ago)
Author:
vboxsync
Message:

#2954: Updated Linux installers for vboxnetadp.ko

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/vboxdrv.sh.in

    r18265 r19030  
    4040    BUILDVBOXDRV="$INSTALL_DIR/src/vboxdrv/build_in_tmp"
    4141    BUILDVBOXNETFLT="$INSTALL_DIR/src/vboxnetflt/build_in_tmp"
     42    BUILDVBOXNETADP="$INSTALL_DIR/src/vboxnetadp/build_in_tmp"
    4243else
    4344    VBOXMANAGE="/usr/lib/%PACKAGE%/VBoxManage"
    4445    BUILDVBOXDRV="/usr/share/%PACKAGE%/src/vboxdrv/build_in_tmp"
    4546    BUILDVBOXNETFLT="/usr/share/%PACKAGE%/src/vboxnetflt/build_in_tmp"
     47    BUILDVBOXNETADP="/usr/share/%PACKAGE%/src/vboxnetadp/build_in_tmp"
    4648fi
    4749
     
    182184    # ensure permissions
    183185    if ! chown :$GROUPNAME $DEVICE 2>/dev/null; then
     186        rmmod vboxnetadp 2>/dev/null
    184187        rmmod vboxnetflt 2>/dev/null
    185188        rmmod vboxdrv 2>/dev/null
     
    189192        failure "modprobe vboxnetflt failed. Please use 'dmesg' to find out why"
    190193    fi
     194    if ! modprobe vboxnetadp > /dev/null 2>&1; then
     195        failure "modprobe vboxnetadp failed. Please use 'dmesg' to find out why"
     196    fi
    191197    succ_msg
    192198}
     
    195201{
    196202    begin_msg "Stopping VirtualBox kernel module"
     203    if running vboxnetadp; then
     204        if ! rmmod vboxnetadp 2>/dev/null; then
     205            failure "Cannot unload module vboxnetadp"
     206        fi
     207    fi
    197208    if running vboxdrv; then
    198209        if running vboxnetflt; then
     
    261272{
    262273    stop
     274    if find /lib/modules/`uname -r` -name "vboxnetadp\.*" 2>/dev/null|grep -q vboxnetadp; then
     275        begin_msg "Removing old VirtualBox netadp kernel module"
     276        find /lib/modules/`uname -r` -name "vboxnetadp\.*" 2>/dev/null|xargs rm -f 2>/dev/null
     277        succ_msg
     278    fi 
    263279    if find /lib/modules/`uname -r` -name "vboxnetflt\.*" 2>/dev/null|grep -q vboxnetflt; then
    264280        begin_msg "Removing old VirtualBox netflt kernel module"
     
    282298        failure "Look at $LOG to find out what went wrong"
    283299    fi
     300    if ! $BUILDVBOXNETADP \
     301        --use-module-symvers /tmp/vboxdrv-Module.symvers \
     302        --no-print-directory install >> $LOG 2>&1; then
     303        failure "Look at $LOG to find out what went wrong"
     304    fi
    284305    rm -f /etc/vbox/module_not_compiled
    285306    succ_msg
     
    291312    if running vboxdrv; then
    292313        if running vboxnetflt; then
    293             echo "VirtualBox kernel modules (vboxdrv and vboxnetflt) are loaded."
     314            if running vboxnetadp; then
     315                echo "VirtualBox kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are loaded."
     316            else
     317                echo "VirtualBox kernel modules (vboxdrv and vboxnetflt) are loaded."
     318            fi
    294319        else
    295320            echo "VirtualBox kernel module is loaded."
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette