VirtualBox

Changeset 15909 in vbox for trunk/src/VBox/HostDrivers/linux


Ignore:
Timestamp:
Jan 13, 2009 11:01:30 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41531
Message:

Target "load":

Avoid misleading ERROR messages from rmmod by only removing a
module when it is actually in the kernel. Be verbose about that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/linux/Makefile

    r15817 r15909  
    55#
    66#
    7 # Copyright (C) 2008 Sun Microsystems, Inc.
     7# Copyright (C) 2008-2009 Sun Microsystems, Inc.
    88#
    99# This file is part of VirtualBox Open Source Edition (OSE), as
     
    5151
    5252load:
    53         @/sbin/rmmod vboxnetflt || true
    54         @/sbin/rmmod vboxdrv || true
    55         @/sbin/insmod vboxdrv.ko
    56         @if [ -f vboxnetflt.ko ]; then /sbin/insmod vboxnetflt.ko; fi
     53        @for module in vboxnetflt vboxdrv; do \
     54                if grep "^$$module " /proc/modules >/dev/null; then \
     55                        echo "Removing previously installed $$module module"; \
     56                        /sbin/rmmod $$module; \
     57                fi; \
     58        done
     59        @for module in vboxdrv vboxnetflt; do \
     60                if test -f $$module.ko; then \
     61                        echo "Installing $$module module"; \
     62                        /sbin/insmod $$module.ko; \
     63                fi; \
     64        done
Note: See TracChangeset for help on using the changeset viewer.

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