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