]>
Commit | Line | Data |
---|---|---|
dc0c71d9 RM |
1 | #! /bin/sh |
2 | # | |
3 | # Copyright (C) 2005,2008,2009 Free Software Foundation, Inc. | |
4 | # | |
5 | # This script 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 | ||
14 | # Read source code from stdin and detect partmap names. | |
15 | ||
16 | module=$1 | |
17 | ||
18 | # Ignore video.mod. | |
19 | if test $module = video; then | |
20 | exit | |
21 | fi | |
22 | ||
23 | # For now, this emits only a module name, if the module registers a partition map. | |
24 | if grep -v "^#" | grep '^ *grub_video_register' >/dev/null 2>&1; then | |
25 | echo $module | |
26 | fi |