genfslist.sh 770 B

123456789101112131415161718192021222324252627
  1. #! /bin/sh
  2. #
  3. # Copyright (C) 2005,2008 Free Software Foundation, Inc.
  4. #
  5. # This gensymlist.sh is free software; the author
  6. # gives unlimited permission to copy and/or distribute it,
  7. # with or without modifications, as long as this notice is preserved.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  11. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  12. # PARTICULAR PURPOSE.
  13. # Read source code from stdin and detect fs names.
  14. module=$1
  15. # Ignore kernel.mod.
  16. if test $module = kernel; then
  17. exit
  18. fi
  19. # For now, this emits only a module name, if the module registers a filesystem.
  20. if grep -v "^#" | grep '^ *grub_fs_register' >/dev/null 2>&1; then
  21. echo $module
  22. fi