home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / initramfs-tools / hooks / vmxnet < prev   
Encoding:
Text File  |  2010-12-19  |  520 b   |  35 lines

  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
  35.