Changeset 39358 in vbox for trunk/src/VBox/HostDrivers/linux
- Timestamp:
- Nov 17, 2011 10:25:36 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/linux/do_dkms
r32183 r39358 15 15 # 16 16 17 ACTION= 18 if [ "$1" = "install" ]; then 19 ACTION="install" 20 MODULE="$2" 21 VERSION="$3" 22 elif [ "$1" = "uninstall" ]; then 23 shift 24 ACTION="uninstall" 25 OLDMODULES="$*" 26 break 27 fi 28 17 29 DKMS=`which dkms 2>/dev/null` 18 30 if [ -n "$DKMS" ] 19 31 then 20 if [ "$ 1" = "uninstall" ]; then32 if [ "$ACTION" = "uninstall" ]; then 21 33 22 34 echo "Uninstalling modules from DKMS" 23 for m in _OLDMODULES_35 for m in $OLDMODULES 24 36 do 25 37 $DKMS status -m $m | while read line … … 37 49 done 38 50 done 39 # there should not be any more matches40 status=`$DKMS status -m _MODULE_ -v _VERSION_`41 if echo $status | grep added > /dev/null ||42 echo $status | grep built > /dev/null ||43 echo $status | grep installed > /dev/null44 then45 $DKMS remove -m _MODULE_ -v _VERSION_ --all46 fi47 51 exit 0 48 52 49 elif [ "$ 1" = "install" ]; then53 elif [ "$ACTION" = "install" ]; then 50 54 51 55 echo "Attempting to install using DKMS" 52 if $DKMS add -m _MODULE_ -v _VERSION_&&53 $DKMS build -m _MODULE_ -v _VERSION_&&54 $DKMS install -m _MODULE_ -v _VERSION_--force56 if $DKMS add -m $MODULE -v $VERSION && 57 $DKMS build -m $MODULE -v $VERSION && 58 $DKMS install -m $MODULE -v $VERSION --force 55 59 then 56 60 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.