VirtualBox

Ignore:
Timestamp:
Feb 18, 2008 7:34:18 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28205
Message:

Installer/Linux: added support for DKMS to the all distributions Linux installer (the main one, not the additions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/build_in_tmp

    r5999 r7004  
    2424# terms and conditions of either the GPL or the CDDL or both.
    2525#
     26
     27# Attempt to build using DKMS first
     28DKMS=`which dkms`
     29if [ -n "$DKMS" ]
     30then
     31    echo "Attempting to install using DKMS"
     32    status=`$DKMS status -m vboxdrv -v _VERSION_`
     33    if echo $status | grep added > /dev/null ||
     34        echo $status | grep built > /dev/null ||
     35        echo $status | grep installed > /dev/null
     36    then
     37        $DKMS remove -m vboxdrv -v _VERSION_ --all
     38    fi
     39    if $DKMS add -m vboxdrv -v _VERSION_ &&
     40        $DKMS build -m vboxdrv -v _VERSION_ &&
     41        $DKMS install -m vboxdrv -v _VERSION_ --force
     42    then
     43        exit 0
     44    fi
     45    echo "Failed to install using DKMS, attempting to install without"
     46fi
    2647
    2748# find a unique temp directory
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