isolinux.bin autoupdate

This commit is contained in:
Tomas M
2012-09-04 20:39:33 -05:00
parent 701d872744
commit 00a8051928
3 changed files with 38 additions and 1 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
# This script will update the file ../bootfiles/isolinux.bin to match
# your LiveKit name used in ../.config
PKG=syslinux-4.05
PKGTGZ=$PKG.tar.gz
DL="http://www.kernel.org/pub/linux/utils/boot/syslinux/$PKGTGZ"
. ../.config
# download, unpack, and patch syslinux
wget -c "$DL"
tar -xf $PKGTGZ
#rm $PKGTGZ
cd $PKG
sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" core/fs/iso9660/iso9660.c
sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" core/fs/lib/loadconfig.c
make installer
cp core/isolinux.bin ../../bootfiles/isolinux.bin
echo
echo "Copying isolinux.bin to $(realpath ../../bootfiles/isolinux.bin)"
cd ..
rm -Rf $PKG