Bug#278529: Oops...
Clement 'nodens' Hermann
"Clement 'nodens' Hermann" <clement.hermann@free.fr>, 278529@bugs.debian.org
Thu, 10 Mar 2005 18:13:37 +0100
This is a multi-part message in MIME format.
--------------010709060802000102090502
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by spooler1.completel.net id j2AHDbKl015590
wrong patch, sorry. This is the good one (eval is best than find IMHO).
--=20
Cl=E9ment 'nodens' Hermann <clement.hermann@free.fr>
- L'air pur ? c'est pas en RL, =E7a ? c'est pas hors charte ?
-- Jean in "l'Histoire des Pingouins" - http://tnemeth.free.fr/fmbl/linux=
sf
--------------010709060802000102090502
Content-Type: text/x-patch;
name="grub-floppy.patch"
Content-Disposition: inline;
filename="grub-floppy.patch"
Content-Transfer-Encoding: 7bit
--- grub-floppy.old 2005-03-10 18:11:25.000000000 +0100
+++ grub-floppy 2005-03-10 18:12:26.000000000 +0100
@@ -19,7 +19,7 @@
# Initialize some variables.
dd=`which dd`
-pkglibdir=/lib/grub/*-*
+pkglibdir=$(eval echo /lib/grub/*-*)
stage1=$pkglibdir/stage1
stage2=$pkglibdir/stage2
@@ -90,8 +90,6 @@
/bin/echo -e "\nThat's All Folks!"
}
-# test we have the necessary files first
-checkfiles
case "$1" in
-h | --help)
@@ -102,6 +100,8 @@
if [ -z "$1" ] ; then
usage
else
+ # test we have the necessary files first
+ checkfiles
checkdevice "$1"
questiondevice "$1"
createfloppy "$1"
--------------010709060802000102090502--