~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools.fix-836277

« back to all changes in this revision

Viewing changes to debian/local/vmxnet.hook

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-07-30 12:56:49 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730125649-97sfj5li8axiseoo
Tags: 2009.07.22-179896-2
* Temporarily building without dumbnet, the recently uploaded
  new dumbnet upstream version broke down (Closes: #539006).
* Using more common name to store local debian additions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# initramfs hook for vmxnet (open-vm-tools)
 
4
 
 
5
set -e
 
6
 
 
7
# initramfs-tools header
 
8
 
 
9
PREREQ=""
 
10
 
 
11
prereqs()
 
12
{
 
13
        echo "${PREREQ}"
 
14
}
 
15
 
 
16
case "${1}" in
 
17
        prereqs)
 
18
                prereqs
 
19
                exit 0
 
20
                ;;
 
21
esac
 
22
 
 
23
. /usr/share/initramfs-tools/hook-functions
 
24
 
 
25
# vmxnet hook
 
26
 
 
27
# If pcnet32 is installed in the initrd, also install vmxnet. Together with the
 
28
# modprobe configuration, we can ensure that vmxnet is always preferred over
 
29
# pcnet32.
 
30
 
 
31
if [ -e "${DESTDIR}"/lib/modules/*/kernel/drivers/net/pcnet32.ko ]
 
32
then
 
33
        manual_add_modules vmxnet
 
34
fi