wrong patch, sorry. This is the good one (eval is best than find IMHO).

-- 
Cl�ment 'nodens' Hermann <[EMAIL PROTECTED]>
- L'air pur ? c'est pas en RL, �a ? c'est pas hors charte ?
-- Jean in "l'Histoire des Pingouins" - http://tnemeth.free.fr/fmbl/linuxsf

--- 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"

Reply via email to