~ubuntu-branches/ubuntu/trusty/dkms/trusty-security

« back to all changes in this revision

Viewing changes to kernel_prerm.d_dkms

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-10-25 01:32:41 UTC
  • mfrom: (2.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20101025013241-cw5ulnje1j2j4rco
Tags: 2.1.1.2-5ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/control:
    - depend on patch instead of recommending it, if its missing
      the "patches" feature of dkms will no longer work and that
      will cause build failures (LP: #653899)
  - debian/patches/improve-the-logic-behind-kernels-detection.patch:
    - Before using the current kernel we need to make sure that this
      kernel doesn't belong to the host of a chroot and we should
      also be more careful when adding kernels to the candidates
      list (LP: #602408).

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
   name=`echo "$line" | awk '{print $1}' | sed 's/,$//'`
9
9
   vers=`echo "$line" | awk '{print $2}' | sed 's/,$//'`
10
10
   arch=`echo "$line" | awk '{print $4}' | sed 's/:$//'`
11
 
   echo "dkms: uninstalling: $name $vers ($inst_kern) ($arch)" >&2
12
 
   dkms uninstall -m $name -v $vers -k $inst_kern -a $arch
 
11
   echo "dkms: removing: $name $vers ($inst_kern) ($arch)" >&2
 
12
   dkms remove -m $name -v $vers -k $inst_kern -a $arch
13
13
done < <(dkms status -k $inst_kern 2>/dev/null | grep ": installed")
14
14
fi
15
15