~ubuntu-branches/ubuntu/lucid/dkms/lucid-proposed

« back to all changes in this revision

Viewing changes to kernel_prerm.d_dkms

  • Committer: Bazaar Package Importer
  • Author(s): Andy Whitcroft
  • Date: 2008-12-04 16:48:10 UTC
  • Revision ID: james.westby@ubuntu.com-20081204164810-a2o24i41usenk6g6
Tags: 2.0.20.4-0ubuntu3
Ensure that the /lib/modules/<version>/updates/dkms directory is
removed if it is empty after a removal.  This allows the modules
directory to be removed as it becomes empty.  (LP: #300773)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
done < <(dkms status -k $inst_kern 2>/dev/null | grep ": installed")
14
14
fi
15
15
 
 
16
rmdir --ignore-fail-on-non-empty \
 
17
        "/lib/modules/$inst_kern/updates/dkms" \
 
18
        "/lib/modules/$inst_kern/updates"
 
19
 
16
20
exit 0