grub_*_init() has no argument. Also add branch-specific "module_" prefix.
This commit is contained in:
parent
78cd36e08d
commit
cdefd058dc
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ EOF
|
||||||
while read line; do
|
while read line; do
|
||||||
file=`echo $line | cut -f1 -d:`
|
file=`echo $line | cut -f1 -d:`
|
||||||
if echo $@ | grep $file >/dev/null; then
|
if echo $@ | grep $file >/dev/null; then
|
||||||
echo $line | sed -e 's/.*GRUB_MOD_INIT *(\([a-zA-Z0-9_]*\)).*/ grub_\1_init (0);/'
|
echo $line | sed -e 's/.*GRUB_MOD_INIT *(\([a-zA-Z0-9_]*\)).*/ grub_module_\1_init ();/'
|
||||||
fi
|
fi
|
||||||
done < ${lst}
|
done < ${lst}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ EOF
|
||||||
while read line; do
|
while read line; do
|
||||||
file=`echo $line | cut -f1 -d:`
|
file=`echo $line | cut -f1 -d:`
|
||||||
if echo $@ | grep $file >/dev/null; then
|
if echo $@ | grep $file >/dev/null; then
|
||||||
echo $line | sed -e 's/.*GRUB_MOD_INIT *(\([a-zA-Z0-9_]*\)).*/ grub_\1_fini ();/'
|
echo $line | sed -e 's/.*GRUB_MOD_INIT *(\([a-zA-Z0-9_]*\)).*/ grub_module_\1_fini ();/'
|
||||||
fi
|
fi
|
||||||
done < ${lst}
|
done < ${lst}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue