~ubuntu-branches/debian/stretch/dkms/stretch

« back to all changes in this revision

Viewing changes to debian/patches/kfreebsd.patch

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello, Mario Limonciello, Giuseppe Iuculano
  • Date: 2011-07-22 13:36:32 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20110722133632-gliqndk9vu3iwv2c
Tags: 2.2.0.2-1
[ Mario Limonciello ]
* [c5846b6] Imported Upstream version 2.2.0.2
  - Doesn't leave files in /tmp (Closes: #633802)
  - Autoinstall works on multiple kernels (Closes: #634979) (LP: #812979)
  - PRE_BUILD command working directory fix. (LP: #812088)
* [83b5f6e] Drop kfreebsd.patch.  Merged upstream

[ Giuseppe Iuculano ]
* [a80ecc5] Updated VCS control field

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- a/dkms
2
 
+++ b/dkms
3
 
@@ -233,6 +233,9 @@ setup_kernels_arches()
4
 
 do_depmod()
5
 
 {
6
 
     # $1 = kernel version
7
 
+    if [ "${current_os}" != "Linux" ] ; then
8
 
+        return
9
 
+    fi
10
 
     if [[ -f /boot/System.map-$1 ]]; then
11
 
        /sbin/depmod -a "$1" -F "/boot/System.map-$1"
12
 
     else
13
 
@@ -377,7 +380,7 @@ override_dest_module_location()
14
 
     local orig_location="$1"
15
 
     [[ ${addon_modules_dir} ]] && echo "/${addon_modules_dir}" && return
16
 
 
17
 
-    if [ "$uname_s" = "GNU/kFreeBSD" ] ; then
18
 
+    if [ "$current_os" = "GNU/kFreeBSD" ] ; then
19
 
        # Does not support subdirs, regardless of distribution
20
 
        echo "" && return
21
 
     fi