# HG changeset patch # User Pascal Bellard # Date 1259250288 -3600 # Node ID 81f59d88ba122e79fbcc01df51388a6f14badbe2 # Parent a8ca1e0896fe770609af1ca63a92782ed34099c1 syslinux: add isohybrid (shell version) diff -r a8ca1e0896fe -r 81f59d88ba12 syslinux-extra/receipt --- a/syslinux-extra/receipt Wed Nov 25 10:51:12 2009 +0000 +++ b/syslinux-extra/receipt Thu Nov 26 16:44:48 2009 +0100 @@ -12,15 +12,15 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share/boot + mkdir -p $fs/usr/share/boot $fs/usr/bin $fs/bin lzma e $src/memdisk/memdisk $fs/usr/share/boot/memdisk.lzma 2> /dev/null cp -a $src/mbr/mbr.bin $fs/usr/share/boot lzma e $src/core/pxelinux.0 $fs/usr/share/boot/pxelinux.0.lzma 2> /dev/null #lzma e $src/com32/menu/vesamenu.c32 $fs/usr/share/boot/vesamenu.c32.lzma #lzma e $src/com32/modules/mboot.c32 $fs/usr/share/boot/mboot.c32.lzma cp $src/com32/modules/sdi.c32 $fs/usr/share/boot/ - mkdir -p $fs/bin cp -a $src/linux/syslinux-nomtools $fs/bin/syslinux cp -a $src/extlinux/extlinux $fs/bin + cp -a $src/isohybrid.sh $fs/usr/bin/isohybrid chown root.root $fs/usr/share/boot/* $fs/bin/* } diff -r a8ca1e0896fe -r 81f59d88ba12 syslinux/receipt --- a/syslinux/receipt Wed Nov 25 10:51:12 2009 +0000 +++ b/syslinux/receipt Thu Nov 26 16:44:48 2009 +0100 @@ -16,11 +16,13 @@ compile_rules() { cd $src + cp ../stuff/tools/isohybrid.sh . cp ../stuff/tools/keytab-lilo.pl . cp ../stuff/extra/ifmem.c com32/modules grep -q ifmem.c32 com32/modules/Makefile || sed -i 's/ifcpu64.c32/ifcpu64.c32 ifmem.c32/' com32/modules/Makefile make -C com32 + ./isohybrid.sh --build for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do [ "$(basename $(dirname $i))" = "include" ] && continue j=$(basename $i) diff -r a8ca1e0896fe -r 81f59d88ba12 syslinux/stuff/tools/isohybrid.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/syslinux/stuff/tools/isohybrid.sh Thu Nov 26 16:44:48 2009 +0100 @@ -0,0 +1,86 @@ +#!/bin/sh + +build="--build" +if [ "$1" == "$build" ]; then + cat >> $0 <