From 307dbb5ab54720b61a3c00e3c59bbc215ba5a46a Mon Sep 17 00:00:00 2001 From: Kload Date: Sun, 23 Jun 2013 18:44:15 +0000 Subject: [PATCH] Bugfix in add-formware-to --- add-firmware-to | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/add-firmware-to b/add-firmware-to index f95a2cc..0d388e1 100755 --- a/add-firmware-to +++ b/add-firmware-to @@ -27,6 +27,7 @@ # set -x +BUILd_DIR=$(pwd) is_iso() { file "$1" | grep -q "ISO 9660" @@ -70,7 +71,7 @@ initrd_append_fw() { done mkdir -p x/usr/share/graphics/ - cp /home/yunohost/yunohost/extras/bandeau.png x/usr/share/graphics/logo_debian.png + cp $BUILD_DIR/extras/bandeau.png x/usr/share/graphics/logo_debian.png (cd x && find . | cpio -H newc -o) >> initrd cd - @@ -137,10 +138,10 @@ if is_iso "$file"; then arch=`echo "$file" | cut -d"-" -f3` if [ $arch = "i386" ]; then - cp -f /home/yunohost/yunohost/isolinux/{adgtk.cfg,adtxt.cfg,gtk.cfg,menu.cfg,stdmenu.cfg,txt.cfg} $buildtree/isolinux/ + cp -f $BUILD_DIR/isolinux/{adgtk.cfg,adtxt.cfg,gtk.cfg,menu.cfg,stdmenu.cfg,txt.cfg} $buildtree/isolinux/ else rm $buildtree/isolinux/{adgtk.cfg,adtxt.cfg,gtk.cfg,menu.cfg,stdmenu.cfg,txt.cfg} - cp -f /home/yunohost/yunohost/isolinux/{amdadgtk.cfg,amdadtxt.cfg,amdgtk.cfg,menu.cfg,stdmenu.cfg,amdtxt.cfg} $buildtree/isolinux/ + cp -f $BUILD_DIR/isolinux/{amdadgtk.cfg,amdadtxt.cfg,amdgtk.cfg,menu.cfg,stdmenu.cfg,amdtxt.cfg} $buildtree/isolinux/ fi for i in $(find "$buildtree" -name "initrd.gz" -o -name "initrd.img"); do