home *** CD-ROM | disk | FTP | other *** search
- #!/bin/bash
- #
- # Copyright (c) 1999 S.u.S.E. Gmbh Fuerth, Germany. All rights reserved.
- #
- # Author: Thomas Fehr <fehr@suse.de>, 1999
- #
- FOUND=0
- umount /mnt > /dev/null 2>&1
- while [ $FOUND -eq 0 ]
- do
- umount /dev/cdrom > /dev/null 2>&1
- echo -n "Insert the first SuSE installation CD into your CDROM drive and press Enter."
- read
- mount -r -t iso9660 /dev/cdrom /mnt
- if [ ! -f /mnt/disks/eide01 ]
- then
- echo Wrong CDROM. File /disks/eide01 does not exist.
- else
- FOUND=1
- fi
- done
- TMPDIR=/tmp/`basename $0`.$$
- echo -n "Insert disk into floppy drive and press Enter."
- read
- cp -a /mnt/disks/eide01 .
- umount /dev/cdrom > /dev/null 2>&1
- echo "Copying floppy image to disk."
- dd if=eide01 of=/dev/fd0
- mount -tmsdos /dev/fd0 /mnt
- echo "Copying /boot/vmlinuz to disk."
- rm -f /mnt/*mod.gz /mnt/*mo.gz
- cp /boot/vmlinuz /mnt/linux
- cat /mnt/syslinux.cfg | sed "/^append/s/$/ linuxrc=auto yast=tape/" > tmp.cfg
- mv tmp.cfg /mnt/syslinux.cfg
- umount /mnt
- rm -rf $TMPDIR
- echo "Automated bootdisk creation complete."
-