Following up my last message, I just reworked Tom's original script
a bit - this can be executed from the directory where you unpacked
tomsrtbt.raw.  It picks the current directory up from $ID which is
set in settings.s
Cordially,

                                          George
____________________________________________________________________________
George Law - Software/Systems Engineer       Software Workshop Inc.
[EMAIL PROTECTED] 315.635.1968 (x213)             "software that fits!" (TM)
http://www.thebook.com


mkElTorito:


. 1/settings.s
echo $NM-$VE.$PL
#topdir is the current unpacked directory
export topdir=$ID
#destdir is the destination for the eltorito files
export destdir=$ID/eltorito
mkdir $destdir
umount /dev/ram0 /mnt /dev/ram1 /mnt2 /fl /mnt/* /dev/ram2 2>/dev/null
dd if=/dev/zero of=/dev/ram0 bs=1k count=2880 2>/dev/null
dd if=/dev/zero of=/dev/ram1 bs=1k count=4096 2>/dev/null
mkfs.minix /dev/ram0 2880 > /dev/null
mkfs.minix /dev/ram1 4096 > /dev/null
mount /dev/ram0 /mnt
mount /dev/ram1 /mnt2
cp -af $topdir/1/* /mnt
cp -af $topdir/2/dev /mnt
cp -af $topdir/1/* /mnt2
cp -af $topdir/2/* /mnt2
mv /mnt2/etc/rc.S /mnt2/etc/rc.S_
mv /mnt2/etc/rc.M /mnt2/etc/rc.M_
cat > /mnt2/etc/rc.S <<!
#!/bin/sh
PATH=/usr/bin:/bin
mount -o remount /
mount -a
init 5
!
cat > /mnt2/etc/rc.M <<!
#!/bin/sh
BT=1
PATH=/usr/bin:/bin
. /settings.s
update &
cp /rc.* /*.s /usr/doc
gzip -d /usr/doc/*.gz
. /usr/doc/rc.custom
mount /dev/fd0 /fl > /dev/null 2>&1
[ -f /fl/rc.tomsrtbt ] && . /fl/rc.tomsrtbt
umount /fl > /dev/null 2>&1
!
chmod ugo+x /mnt2/etc/rc.S /mnt2/etc/rc.M
umount /mnt2
dd if=/dev/ram1 bs=1k count=4096 | gzip -9 -n > /mnt/initrd.gz 2>/dev/null
ls -l /mnt
rm /mnt/map
lilo -r /mnt -C - <<!
 boot=/dev/ram0
 disk=/dev/ram0
 bios=0x00
 sectors=36
 heads=2
 cylinders=80
 install=/boot.b
 message=/settings.s
 backup=/dev/null
 map=/map
 timeout=150
 read-write
 vga=ask
 prompt
 image=/zImage
 root=/dev/ram0
 initrd=/initrd.gz
!
umount /mnt
dd if=/dev/ram0 bs=1k count=2880 | bzip2 -9 > $destdir/ElTorito.288.bin.bz2
dd if=/dev/ram0 bs=1k count=2880 > $destdir/ElTorito.288.bin

Reply via email to