~ubuntu-branches/ubuntu/intrepid/dkms/intrepid-updates

« back to all changes in this revision

Viewing changes to dkms

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2008-08-18 12:23:56 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080818122356-r5r17h0ybagqx7nc
Tags: 2.0.20.4-0ubuntu1
* Add patch from TJ that doesn't force a tarball to be loaded
  unless it's present.
* debian/rules:
  - Run dh_installmodules.  See debbug 377390 for more information.
* debian/modprobe:
  - Install initial modprobe.d/dkms file.
* Check for /etc/modprobe.d/dkms before modprobe.conf in case we are
  on a distro that supports it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
707
707
 
708
708
    local temp_dir_name=`mktemp -d $tmp_location/dkms.XXXXXX`
709
709
    modconfig_files=""
 
710
    [ -e /etc/modprobe.d/dkms ] && modconfig_files="/etc/modprobe.d/dkms"
710
711
    [ -e /etc/modules.conf ] && modconfig_files="/etc/modules.conf"
711
712
    [ -e /etc/modprobe.conf ] && modconfig_files="$modconfig_files /etc/modprobe.conf"
712
713
 
2233
2234
    for f in $(echo -e ${modules_cgz_list}); do
2234
2235
        module_wo_suffix=$(basename ${f} ${module_suffix})
2235
2236
        tmp_alias="./modules.alias.${module_wo_suffix}"
 
2237
        f="./${f}"
2236
2238
        depmod -n ${f} 2>/dev/null | grep ^alias > ${tmp_alias}
2237
2239
        if [ -s ${tmp_alias} ]; then
2238
2240
            cat ${tmp_alias} >> ./modules.alias
2239
 
        else
2240
 
            modinfo ${f} 2>/dev/null | grep ^alias: | xargs printf "%s %s ${module_wo_suffix}\n" > ${tmp_alias}
2241
 
            if [ -s ${tmp_alias} ]; then
2242
 
                cat ${tmp_alias} >> ./modules.alias
2243
 
            fi
2244
2241
        fi
2245
2242
    done
2246
2243
    [ -e ./modules.alias ] && cp -f ./modules.alias "$driver_disk_dir/"
3423
3420
        exec >/dev/null 2>&1
3424
3421
        ;;
3425
3422
    --version|-V)
3426
 
        echo $"dkms: 2.0.20.3"
 
3423
        echo $"dkms: 2.0.20.4"
3427
3424
        exit 0
3428
3425
        ;;
3429
3426
    --no-prepare-kernel)